|
-
Nov 16th, 1999, 04:48 AM
#1
Thread Starter
Lively Member
I just don't get it?!?!
I have a picturebox called PicBox. The following code doesn't save the SAMPLE.
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
SavePicture PicBox, App.Path & "\temp.bmp"
What's wrong...please!
-
Nov 16th, 1999, 04:56 AM
#2
the Picture Property doesn't change, when you Print or Draw on the Picturebox using the Line or PSet Methods you are updating the Image, so you can either:
Code:
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
SavePicture PicBox.Image, App.Path & "\temp.bmp"
Or Force the Picture to Update, e.g.
Picture1 = Picture1.Image
Code:
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
PicBox = PicBox.Image
SavePicture PicBox, App.Path & "\temp.bmp"
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
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
|