Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DrawBitmap ( int layer,
- int bitmap_id,
- int source_x, int source_y, int source_w, int source_h,
- int dest_x, int dest_y, int dest_w, int dest_h,
- float rotation, bool mask);
- ZASM Instruction:
- BITMAPR
- /**
- * The process of copying one bitmap to another, or to the screen, is called a 'BLIT', or 'BLITTING'.
- * This instruction BLITs a source rect from off-screen (memory) Bitmap with id of bitmap_id onto
- * an area of the screen (or another bitmap) using a set of rectangular coordinates, at the given layer.
- *
- * Use source_x + source_w to define the X axis and source_y + source_h to define the
- * Y axis of the bitmap area that you wish to draw; then specify the target area using
- * dest_x + dest_w and dest_y + dest_h.
- *
- * If source_w and dest_w are not equal, or source_h and dest_h are not equal, the
- * bitmap will be scaled.
- *
- * The valid range of coordinates on a bitmap is 0 tp 511, on each axis. Bitmaps are
- * 512 pixels square, in size.
- *
- * Rotation defines if the bitmap will be rotated. if so, it will be rotated on its centre
- * by a number of DEGREES equal to the value of rotation.
- *
- * If you wish to mask out translucent areas of the bitmap when blitting it, set mast true.
- *
- *
- * (!) Note* Script drawing functions are enqueued and executed in a frame-by-frame basis
- * based on the order of which layer they need to be drawn to. Drawing to or from
- * seperate render tagets or bitmaps is no exception! So keep in mind in order to
- * eliminate unwanted drawing orders or bugs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement