bitmap help
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?
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement