First off, try and be patient.

Consider a bitmap (or pixmap) an array of pixels. Each row of pixels is the Stride not the width.

So to copy from the pixmap you are given (FT_Bitmap) at the point [Pix_X, Pix_Y] do,
for(Pix_Y=0;Pix_Y<bitmap.height;Pix_Y++) {
 for(Pix_X=0;Pix_Y<bitmap.width;Pix_X++) {
Destination.buffer[Destination.width* Pix_Y + Pix_X] = bitmap.buffer[Source->bitmap.pitch * Pix_Y + Pix_X];
 }
}

Best of luck!

_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to