[Gambas-user] SDL2 Draw

Shane buster6seven at gmail.com
Sat Jan 5 03:54:42 CET 2019


Hi I found a mistake in the doc's



<http://gambaswiki.org/wiki>
comp <http://gambaswiki.org/wiki/comp> • gb.sdl2 
<http://gambaswiki.org/wiki/comp/gb.sdl2> • draw 
<http://gambaswiki.org/wiki/comp/gb.sdl2/draw> • image 
<http://gambaswiki.org/wiki/comp/gb.sdl2/draw/image>


  Draw.Image (gb.sdl2)

Static Sub *Image* ( _Image_ As Image 
<http://gambaswiki.org/wiki/comp/gb.sdl2/image>, _X_ As Integer, _Y_ As 
Integer *[* , _Width_ As Integer, _Height_ As Integer, _Source_ As Rect, 
_Opacity_ As Float, _Angle_ As Float )

Paint an image on the current drawing device.

  *

    _Image_ : the image to paint.

  *

    _X_, _Y_ : the top-left position where the image will be drawn.

  *

    _Width_, _Height_ : the target dimensions. If it is different from
    the image dimensions, the image is drawn stretched.

  *

    _Source_ : the sub-part of the image to draw, as a rectangle. If
    |NULL| or not specified, the entire image is drawn.

  *

    _Opacity_ : the opacity applied to the drawn image. _By default it
    is __|1|__(100%)._ _/This is not true it is 0 for 100%/_

  *

    _Angle_ : the rotation angle applied to the image. The image is
    rotated around is center, and by default the image is not rotated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190105/2d0004c4/attachment.html>


More information about the User mailing list