Archived

This topic is now archived and is closed to further replies.

OoMMMoO

flipping bitmaps

Recommended Posts

OoMMMoO    122
How do you flip a bitmap I can get LPDIRECTDRAWSURFACE bitmap_surface; int index; bitmap_surface->Lock(NULL,&ddsd,DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT); for(index=0;indexbuffer,ddsd.lpSurface,sizeof(ddsd.lPitch)); I dont know what to do now can someone explain?

Share this post


Link to post
Share on other sites
acw83    174
It looks like the HTML monster got your post, it looks like you are locking your surface to copy the bitmap to it.

Share this post


Link to post
Share on other sites
LilBudyWizer    491
Use the lpDDBltFx parameter of the Blt function of the IDirectDrawSurface7 interface to specify mirroring. Otherwise you have to move it a pixel at a time. (0,0) goes to (width-1,0) for a horizontal flip, (0,0) goes to (0,height-1) for a vertical flip.

Share this post


Link to post
Share on other sites