PDA

Click to See Complete Forum and Search --> : Problem with Bitblt


sunithi
May 8th, 2002, 04:08 AM
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

Hack
May 8th, 2002, 06:55 AM
Do you have AutoRefresh set to True on your form?

sunithi
May 8th, 2002, 10:36 AM
Yes. Autoredraw is set to True and I have refreshed after bitblt.

Fox
May 8th, 2002, 11:04 AM
post the project?

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

sunithi
May 9th, 2002, 02:06 AM
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.