Results 1 to 3 of 3

Thread: [RESOLVED] about see the images in right way

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    Resolved [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.
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    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
    VB6 2D Sprite control

    To live is difficult, but we do it.

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    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
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width