Results 1 to 5 of 5

Thread: Problem with Bitblt

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    India
    Posts
    35

    Problem with Bitblt

    I have a picture box with scroll bars, my program allows the user to add small pictures like icons on the bigger picture wherever he wants.

    My requirement is to save the big image with the icons at their respective locations whenever the user clicks 'save'. I use bitblt to transfer the icon images to the respective locations on the new image.

    My problem is :

    The icons that are on the portion of the bigger picture which is not visible on the screen, ie below the scroll bar are not getting bitblt in the new picture.

    How can i solve this? Help desperately needed IMMEDIATELY.

    Thanx in advance
    I believe... in myself

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Do you have AutoRefresh set to True on your form?

  3. #3

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    India
    Posts
    35
    Yes. Autoredraw is set to True and I have refreshed after bitblt.
    I believe... in myself

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    post the project?

    (are you sure you blit to IconpositionX - scrollX etc. ?)

  5. #5

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    India
    Posts
    35
    I am posting the Project. unzip and run gis-css.vbp.


    The option button Fit to screen is supposed to stretchblt the picture in Picture2A onto the picturebox named picture11a.

    this happens but the icons added to the lower portion of picture2a do not get blited if the scroll position is at the top.

    i have commented a portion of the code where i had added scrolling down and doing the bitblt. this ensures that all the icons get pasted wherever they are.

    But why does this happen? Does bitblt require that all pictures be visible on the screen to bitblt. Or am i doing something wrong?

    Problem 2:

    the command button Command1 opens another form where i am copying a portion picture 11a to a picture box innpic1. Then I want to stretchblt innpic1.picture to another picturebox innpic.

    this is also a problem.

    please help.
    I believe... in myself

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