|
-
Aug 10th, 2000, 04:26 PM
#1
Thread Starter
New Member
I am having trouble. I wrote a function that should flip an image box, but I am having a couple of problems.
Here is the source code:
Picture1.ScaleWidth = Image1.Width
Picture1.ScaleHeight = Image1.Height
Picture1.Width = Image1.Width
Picture1.Height = Image1.Height
Picture1.Picture = Image1.Picture
Picture2.Height = Image1.Height
Picture2.Width = Image1.Width
Picture2.PaintPicture Picture1.Picture, Picture1.ScaleWidth, 0, -1 * Picture1.ScaleWidth, Picture1.ScaleHeight
Image1.Picture = Picture2.Image
Problem #1: I am having is that when I run this, PictureBox2 momenterally flashes with the flipped image. Then, the image disappears and PictureBox2 reverts back to what is was before.
Problem #2: When the picture flashes up, I noticed that the transparency disappears. How would I fix this?
Thanks,
Bob
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
|