Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2006, 01:34 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ANYONE KNOW HOW TO DRAW SHAPE AND SAVE AS PIC ?

I need a really tiny simple short code example, that I can build and run without editing, that

1) draws 2 black lines and a 1/4" in black dot on a white
square inside a vb form

2) this image should be scaleable

3) saves the image to a printable and webable image file ( bmp ? jpn ? jpeg ?)

Once I have this I can play with the co-ords and sizes to generate
some simple diagrams programmatically.

The examples I have seen so far are too complicated or get
compile errors I don't have the knowledge to fix.

Can anyone oblige ?

Thanks !




 
Old March 13th, 2006, 03:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it looks like a school assignment.
please provide us with the code you wrote so far, and we will be glad to help you

Marco
 
Old March 13th, 2006, 08:05 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look into the GDI (Graphical Device Interface) for VB 6.

Drawing with GDI: http://www.earlsoft.co.uk/hashvb/Drawing_with_GDI
Graphics Commands: http://www.garybeene.com/vb/tut-plot.htm

- A.Kahtava





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating shape in VBA (not center of shape) Piblon Excel VBA 3 April 13th, 2006 04:04 AM
Anyone know how to draw and save a pic ? vbadatvb Visual Basic 2005 Basics 1 March 13th, 2006 08:16 PM
How to draw pic and save as .bmp, .jpn, .jpeg vbadatvb VB How-To 0 March 13th, 2006 01:47 PM
what is best way to determine pixels of pic audi Dreamweaver (all versions) 4 January 1st, 2006 09:20 AM
help with my program (displaying a pic on screen) bcmaverik C# 6 July 9th, 2004 05:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.