Click to See Complete Forum and Search --> : save picture
phil m
March 26th, 2001, 08:51 PM
Once I count the black pixels on a picture I load a label that displays that count. I'd like to save the picture with the label on it as a picture. I realise the label isn't part of the picture but to save the image as a composite would I use bitblt and save it that way or is there a better way?
I also paint some lines onto the picture but then saving the picture doesn't record those new paintings. Is that bitblt again?
Many thanks
Phil
shree
March 27th, 2001, 06:43 AM
Use
Picture1.CurrentX = 10
Picture1.CurrentY = 10
Picture1.print numBlack
to print the number directly on the picture box.
Though IntelliSense doesn't sense the Print method, it works for the picturebox too.
About the lines, are you using the line from the toolbox, or the Line statement.
To make sure that the lines you draw are saved, set the sutoredraw property of the picturebox to true and draw lines using
Picture1.Line (x1,y1)-(x2,y2)
Now, the lines that you draw will be saved.
shree
March 27th, 2001, 06:43 AM
Use
Picture1.CurrentX = 10
Picture1.CurrentY = 10
Picture1.print numBlack
to print the number directly on the picture box.
Though IntelliSense doesn't sense the Print method, it works for the picturebox too.
About the lines, are you using the line from the toolbox, or the Line statement.
To make sure that the lines you draw are saved, set the Autoredraw property of the picturebox to true and draw lines using
Picture1.Line (x1,y1)-(x2,y2)
Now, the lines that you draw will be saved.
Cimperiali
March 28th, 2001, 02:59 AM
Swift and nice. Great.
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.