Einzelnen Beitrag anzeigen

xaromz

Registriert seit: 18. Mär 2005
1.682 Beiträge
 
Delphi 2006 Enterprise
 
#5

AW: Resample oder Resize mit GDI+

  Alt 25. Nov 2010, 17:20
Hallo,

ein Bitmap bekommst Du mit
Delphi-Quellcode:
var bitmap: Pointer;
...
bitmap := nil;
lastResult := GdipCreateBitmapFromScan0(width, height, 0, pixelFormat, nil, bitmap);
Danach steckt in bitmap Dein GDI+ Bitmap.

Ein Bitmap malst Du mit GdipDrawImageRect(graphics, soucre, x, y, width, height); , wobei graphics das Graphikobjekt Deines Quellbitmaps ist.

Gruß
xaromz
I am a leaf on the wind - watch how I soar
  Mit Zitat antworten Zitat