QuickFont.QBitmap.Blit C# (CSharp) Method

Blit() public static method

Blits from source to target. Both source and target must be 32-bit
public static Blit ( BitmapData source, BitmapData target, Rectangle sourceRect, int px, int py ) : void
source System.Drawing.Imaging.BitmapData
target System.Drawing.Imaging.BitmapData
sourceRect System.Drawing.Rectangle
px int
py int
return void
        public static void Blit(BitmapData source, BitmapData target, Rectangle sourceRect, int px, int py)
        {
            Blit(source, target, sourceRect.X, sourceRect.Y, sourceRect.Width, sourceRect.Height, px, py);
        }

Same methods

QBitmap::Blit ( BitmapData source, BitmapData target, int srcPx, int srcPy, int srcW, int srcH, int destX, int destY ) : void

Usage Example

Esempio n. 1
0
 public static void CreateBitmapPerGlyph(QFontGlyph[] sourceGlyphs, QBitmap[] sourceBitmaps, out QFontGlyph[]  destGlyphs, out QBitmap[] destBitmaps){
     destBitmaps = new QBitmap[sourceGlyphs.Length];
     destGlyphs = new QFontGlyph[sourceGlyphs.Length];
     for(int i = 0; i < sourceGlyphs.Length; i++){
         var sg = sourceGlyphs[i];
         destGlyphs[i] = new QFontGlyph(i,new Rectangle(0,0,sg.rect.Width,sg.rect.Height),sg.yOffset,sg.character);
         destBitmaps[i] = new QBitmap(new Bitmap(sg.rect.Width,sg.rect.Height,PixelFormat.Format32bppArgb));
         QBitmap.Blit(sourceBitmaps[sg.page].bitmapData,destBitmaps[i].bitmapData,sg.rect,0,0);
     }
 }
All Usage Examples Of QuickFont.QBitmap::Blit