BitmapTransform

From MCS Wiki AVR
Jump to: navigation, search

Contents

Action

Specify the A-F coefficient of the Bitmap Transform Matrix.

 

 

Syntax

BitmapTransform CoefValue , CoefName

 

 

Remarks

CoefValue

Coefficient value of the Bitmap Transform Matrix in signed 8.8 bit fixed-point form. The initial value is 256.

CoefName

Coeeficient name. There are coefficient A-F. You need to specify a capital letter A,B,C,D,E or F.

 

BitmapTransform  A-F coefficients are used to perform bitmap transform functionalities such as scaling, rotation and translation.

 

 

 

Example

' Pseudocode
' A value of 0.5 (128) causes the bitmap appear double width:
BitmapSource 0
BitmapLayout RGB565, 128,64
BitmapTransform 128, A
BitmapSize Nearest, Border, Border
Begin_G Bitmaps
Vertex2II 16,0,0,0
Clip0112.png
' Pseudocode

' A value of 2.0 (512) gives a half-width bitmap: BitmapSource 0 BitmapLayout RGB565, 128,64 BitmapTransform 512, A BitmapSize Nearest, Border, Border Begin_G Bitmaps

Vertex2II 16,0,0,0
Clip0113.png

Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language