|
-
May 31st, 2000, 03:02 AM
#1
Thread Starter
New Member
I have tried to draw a simple line on an Image (rather than a picturebox) due to the image being capable of stretching while the picturebox is not.
For example I tried:
hPen = CreatePen(0, 1, RGB(255, 0, 0))
SelectObject Image1.Picture.Handle, hPen
Ellipse Image1.Picture.Handle, 5, 5, 30, 30
Image1.Refresh
to draw a simple ellipse on the image. Nothing appears. Is there any way to draw directly to an Image?
-
May 31st, 2000, 04:50 AM
#2
ImageBoxes are just for decorations. They hardly do anything.
-
Jun 5th, 2000, 02:30 AM
#3
Monday Morning Lunatic
Use a picturebox, and look at the documentation for StretchBlt, which allows you to draw the image to a memory space, then do a "stretching block transfer" to the picturebox's hDC (device context).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|