by kornalius » Oct 19, 2004 @ 4:50pm
Hi,
I will fix the routine to add this feature.
The new one will look something like this:
DRAWSURFACE (Surface, X, Y, SurfaceX, SurfaceY, Width, Height, Angle, Alpha, Tint, TintLevel, Light, OffsetX, OffsetY)
Edit: Here is the latest from the help file:
Draw surface (surface) at position (SourceX, SourceY) using the current size (DestWidth, DestHeight).
You can rotate the surface with the (angle) parameter and you can also change the blending of the surface by using (alpha).
If you specify a tint other than -1, the surface will be drawn with this color using the Tintlevel for level of tinting.
You can also specify the amount of light the surface should be painted with. Light ranges from 0 to 255, a value of -1 doesn't use light.
You can also only draw a portion of the source surface on the screen using (SourceX, SourceY, SourceWidth, SourceHeight).
OffsetX and OffsetY draw the surface scrolled either horizontally or vertically.
NB: This function should be used inside a DrawProc procedure.
Example:
surface$ = LoadSurface("\\My Documents\\Bitmap.bmp", -1);
DrawSurface(surface$, 10, 10, 30, 30, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0);