Posted on 1998-06-11
I am having a problem with the paintpicture method. I load a picture file into a picturebox using the loadpicture method.
set pic2.picture = loadpicture("c:\vermont.jpg")
Then I use the paintpicture method to paint the picture to another picturebox control.
pic1.paintpicture pic2.picture, 0, 0, 1000, 1000
At this point the, although the picture paints on the screen, the picture property of pic1 is 0, the type property of pic1 is 0, indicating no picture. So if I try to use another paintpicture, which is what I want to do to paint this to the printer object, I get an "invalid picture" error.
printer.paintpicture pic1.picture 0, 0 ' results in error
Can anyone tell me why this is happening and what can be done about it? I've tried using a .bmp file just to see if that was the problem, using the image property to work with the pictures (which does work and does print, but not what I want. Either is doesn't size properly or prints in greyscale).