| Reference Manual - 1.4.13

IDirectFBImageProvider | RenderTo

#### Render the file contents into the destination contents doing automatic scaling and color format conversion.

DFBResult RenderTo (
| IDirectFBImageProvider |  | * | thiz,
| IDirectFBSurface |  | * | destination,
| const DFBRectangle |  | * | destination_rect
);

If the image file has an alpha channel it is rendered with alpha channel if the destination surface is of the ARGB pixelformat. Otherwise, transparent areas are blended over a black background.

If a destination rectangle is specified, the rectangle is clipped to the destination surface. If NULL is passed as destination rectangle, the whole destination surface is taken. The image is stretched to fill the rectangle.

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License