[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Need help: newbee question
From: |
Infro |
Subject: |
Re: [ft] Need help: newbee question |
Date: |
Fri, 11 Jun 2010 05:13:34 -0500 |
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!