|
-
Aug 27th, 2017, 11:32 PM
#10
Addicted Member
Re: [vb6]Alpha Image Control v2 - Final Update (15 Jan 2012)
 Originally Posted by LaVolpe
Crashing should not be happening and I suspect it is due to not handling errors.
I'm still in developping phase... by crashing I meant not doing what we expect... throw error 481 instead of loading image...
sorry to have mislead you... I'm not handling error at this point.
 Originally Posted by LaVolpe
Now regarding incorrect format error. That error only occurs if LoadPictureGDIplus. Long story short... When passing the Picture object, AIC tries to get VB to give it the image data via a stream. This obviously is a problem on some systems, based on previous posts.
I would be interested to read thoses post... although I don't think it's the issue here (some systems...) Never had ANY problem with your component except "some" minor glitch in rendering...
 Originally Posted by LaVolpe
I've offered some possible tweaks in those previous posts
I'll try to find them. Do you remember some content to facilitate the search ?
 Originally Posted by LaVolpe
One workaround that should work is to pass the handle,
ie., Set pngLavolpe1.Picture = LoadPictureGDIplus(picturebox.picture.handle)
instant fixe! thanks.
 Originally Posted by LaVolpe
GDI+ should always be used to draw text. This is because the hDC passed in that event may be holding a 32bit image and DrawText/TextOut does not render correctly on 32bit bitmaps. The alpha channel can become invalid.
Thanks for the information. I'm writing directly onto a picturebox then passing the picture to the AIC control. It doesn'T need transparency, it's simply a BMP, then I save it to PNG or JPG, depending of the image.
The program I do simply put and order image in an Access Database for VR on sales, with the program, you can add, remove and manage the VR that are or not on sales... Then the program create Thumbnail and the resulting Access Database.
The result is displayed as a web page I have created in the form of a "book" where you can turn page, click thumbnail...
an image is worth 1000 words:
http://www.campingbaiedudiable.ca/roulottes_vendre.html
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
|