|
-
Jan 2nd, 2012, 01:45 PM
#11
Re: [vb6]Alpha Image Control (PNG, AniGIFs, TIFF, & more) [26 Nov 2011]
 Originally Posted by VbNetMatrix
1. ok, Here something odd...
2. Quote "As mentioned before, you can use Pre/PostPaint events"
1) the control's .Width & .Height values are in the control's container's scalemode. The .ScaleWidth & .ScaleHeight properties are always in pixels and is same as AlphaImgCtl9.Picture.Width & .Height when control is same size as the its image. The typGDIpImage .Width & .Height properties are the actual image's width/height in pixels.
2) Set the WantPrePostEvents property to true. You then have to respond to the PrePaint and/or PostPaint events of the control to draw onto the control. The custom button sample project has an example and the ControlGDIp.rtf file has some documentation. PrePaint fires before image is drawn to control; PostPaint fires after image is drawn but before control is visibly updated
Tags for this Thread
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
|