|
-
May 15th, 2008, 12:31 PM
#1
Thread Starter
PowerPoster
[RESOLVED] about see the images in right way
i'm using visual basic 6.
i have a sprite control and i have a filename property... the control is working ok... can read animated cursors, but the problems are:
-i can't see the images in right way(graphics), but if i use the img property i can see in right way;
-i don't know why the transparency isn't working with these files...
heres my project...
can anyone help me?
thanks
Last edited by joaquim; Jul 24th, 2008 at 07:59 PM.
-
May 15th, 2008, 03:12 PM
#2
Thread Starter
PowerPoster
Re: about see the images in right way
if i change backstyle property to opaque in usercontrol, i can see the right image... but i can't see only the image... i don't want see the backcolor...
can anyone help me?
thanks
-
May 15th, 2008, 04:12 PM
#3
Thread Starter
PowerPoster
Re: about see the images in right way
i just resolve the problem... in transparent sub i change some code... i put an if to see if the filename was *.ani or not and if it is then in getpixel function i change the position to 32X32 and for other files i put 0X0... and then i resolve the problem...
and for the image size: in *.ani files i change to these code:
Code:
UserControl.Width = 32 * Screen.TwipsPerPixelX
UserControl.height = 32 * Screen.TwipsPerPixelY
thanks to everyone
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
|