Advertisement

bitmap help

Started by October 26, 2000 10:26 AM
0 comments, last by OoMMMoO 24 years, 2 months ago
How do you copy a the data from the buffer, of a bitmap structure from lamothes code to a surface?
Could I just go

lock offscreen surface
UCHAR video_buffer=(UCHAR*)ddsd.lpSurface;
int mempitch=(int)ddsd.lPitch;

for(int x=0;x{
for(int y=0;y {
video_buffer[x+y*mempitch]=bitmap->buffer;
}
}

if buffer is

int *buffer;
and holds all the data for the bitmap how do I move the pointer throughout the data to get each pixel to copy it to the surface?

This topic is closed to new replies.

Advertisement