Results 1 to 6 of 6

Thread: [VB6 - API] - using bitblt in same picturebox

Threaded View

  1. #1

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

    [VB6 - API] - using bitblt in same picturebox

    i build 1 code for put 1 image in 1 picturebox, and until here works fine:
    Code:
    ImageWithControls Extender.Container.hwnd, picGraphicsEffects.hDC
            picGraphicsEffects.Picture = picGraphicsEffects.Image
            Call BitBlt(picGraphicsEffects.hDC, 0, 0, PicAnimation(lngActualSubImage).Width, PicAnimation(lngActualSubImage).Height, picGraphicsEffects.hDC, lngOldPosX, lngOldPosY, vbSrcCopy)
    then i use the bitblt for copy 1 part of that image to the same picturebox. the result of the function is '1'. but i can't see the part of the image
    because the position isn't correct. i know these because i debug it and the position is correct, but the bitblt interpret it by 0. and i don't know why
    can anyone explain to me what isn't right?
    thanks
    Last edited by joaquim; Jul 29th, 2010 at 02:27 PM.
    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