Results 1 to 17 of 17

Thread: [VB6] - stretch an image to usercontrol size

Threaded View

  1. #1

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

    [VB6] - stretch an image to usercontrol size

    i have 1 line for stretch 1 image in Usercontrol(by it size). but the width isn't correct
    Code:
    StretchBlt UserControl.hDC, 0, 0, UserControl.Width \ Screen.TwipsPerPixelX, UserControl.Height \ Screen.TwipsPerPixelY, PicAnimation(lngActualSubImage).hDC, 0, 0, PicAnimation(lngActualSubImage).Width, PicAnimation(lngActualSubImage).Height, vbSrcCopy
    (see the image for see the bug)
    what isn't correct?
    Attached Images Attached Images  
    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