Thema: Delphi Image resizer

Einzelnen Beitrag anzeigen

Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#2

Re: Image resizer

  Alt 20. Dez 2008, 21:25
See MSDN-Library durchsuchenStretchBlt
Zitat:
BOOL StretchBlt(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of destination upper-left corner
int nYOriginDest, // y-coord of destination upper-left corner
int nWidthDest, // width of destination rectangle
int nHeightDest, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of source upper-left corner
int nYOriginSrc, // y-coord of source upper-left corner
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
DWORD dwRop // raster operation code
);
HDC <=> Canvas.Handle

dwRop: SRCCOPY

If the Qualtity is bad, try
Code:
int SetStretchBltMode(Canvas.Handle, HALFTONE;
  Mit Zitat antworten Zitat