Project

General

Profile

Previous Up Next

_Bitmap2Surface
Copies a zone of the bitmap on the surface.
The position on the surface is (xdest,ydest). The zone copied is of size (width, height) and is positioned per (xsrc,ysrc).

ObjSurface _Bitmap2Surface (
ObjSurface _surface_
I _destX_
I _destY_
ObjBitmap _bitmap_
I _srcX_
I _srcY_
I _width_
I _height_
I _transpColor_
)
Parameters

_surface_
Rendering surface
_destX_
Horizontal position on surface
_destY_
Vertical position on surface
_bitmap_
Image to be blitted on the surface
_srcX_
Horizontal position in image
_srcY_
Vertical position in image
_width_
Horizontal size
_height_
Vertical size
_transpColor_
Transparency color
Return value

Rendering surface if successful, otherwise nil