Search the web
Sign In
New User? Sign Up
AIL_Development · AIL Developer's Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Rendering transparent TGA to a picturebox in vb.net   Message List  
Reply | Forward Message #68 of 125 |
Re: Rendering transparent TGA to a picturebox in vb.net

Hi kevin,

Thanks for your reply.

I am using vb.net and AIL to make an animation sequence player. I did
want to squash the image to 16:9 so does that make the render normal
function usable for a 32bit TGA and it's alpha? id assumed that was
for 24bit images only?

Converting the images to PNG for display is a great idea, but the only
method i can ework out from the help is to save the image to disk
first, meaning I would have masses of files for each sequence
playback, and i would have the slowdown of the disk save. Is there a
way of being able to temporarily place the converted PNG in memory
after the loadimage function so that i can compile my imagecache
collection for playback?

Lastly, I'd noticed that my render transparent directly to picturebox
is rather slow - it draws the image slowly from the bottom up,
and sometimes misses large sections of the image. Anything i'm doing
wrong? I was hoping that i'd get a faster output onto the picturebox.
My previous attempts with <ahem> the devil image library returned a
transparent image straight away to the picturebox. :-) (However the
loading and conversion functions are over 3x faster so i'm not
complaining!)

My hope is to be able to use the image and background image properties
of the vb picturebox to preview a composited FG/BG alpha overlay,
along with the ability to write out the composite to a JPG or other
format afterwards, but again, this is not a priority for the app, just
a wishlist!








Fri Apr 11, 2008 12:48 pm

bluescreenwe...
Offline Offline
Send Email Send Email

Forward
Message #68 of 125 |
Expand Messages Author Sort by Date

Hello all AIL users. I wanted to know what the quickest way would be to load a 32 bit tga so that the alpha transparency was preserved. Ideally i'd need my ...
bluescreenweasel
bluescreenwe...
Offline Send Email
Apr 10, 2008
7:27 pm

1) Standard 24-bit BITMAP images do not support transparency... so converting any 32-bit transparent image (including TGA) to a 24-bit BITMAP would lose the...
Kevin Wilson
kwilson1997
Online Now Send Email
Apr 10, 2008
7:46 pm

Hi kevin, Thanks for your reply. I am using vb.net and AIL to make an animation sequence player. I did want to squash the image to 16:9 so does that make the...
bluescreenweasel
bluescreenwe...
Offline Send Email
Apr 11, 2008
7:32 pm

If you want to squash the image to 16:9 before rendering to a PictureBox, I would recommend resizing the image first, then rendering it transparently using the...
Kevin Wilson
kwilson1997
Online Now Send Email
Apr 14, 2008
4:06 pm

you're right, it would look like crap. My theory was to try to render a tga foreground animation in the image property of the picturebox and a background (non...
bluescreenweasel
bluescreenwe...
Offline Send Email
Apr 28, 2008
5:35 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help