draw_get_swf_aa_level

Get the current anti-aliasing level for SWF format vector sprites.

语法:

draw_get_swf_aa_level();


返回: Real(实数)


描述

This function can be used to get the anti-aliasing (AA) level for SWF format vector sprites. The return value will between 0 and 1 and shows how "smooth" the edges of these sprites will be drawn. You can set the AA level using the function draw_set_swf_aa_level().

重要!该函数在试用版(Trial License)产品中可用。



例如:

if draw_get_swf_aa_level() == 0
   {
   draw_enable_swf_aa(true);
   draw_set_swf_aa_level(0.5);
   }

The above code will check the AA value for SWF format sprites, and if it is 0 it enables AA and sets the value to 0.5.


上一页: Drawing Sprites And Tiles
下一页: draw_skeleton
© Copyright YoYo Games Ltd. 2018 All Rights Reserved