TIvoryCanvas::StretchDraw

Stretches a bitmap on the surface.

void __fastcall StretchDraw(const Windows::TRect& Rect, HBITMAP bmp);

Description

Use StretchDraw to draw an HBITMAP stretched on the surface. Rect is the rectangle in which the bitmap will be stretched, and bmp is the handle for the bitmap. StretchDraw is not very fast, so in most cases you'll use the TIvoryBitmap component to store a bitmap, and StretchCopySurface to stretch that bitmap on the surface.

Back to TIvoryCanvas