Std graphics pixmap new
std:std.graphics.Pixmap.New
Method New:Void( width:Int,height:Int,format:PixelFormat=PixelFormat.RGBA8 )#
Method New:Void( width:Int,height:Int,format:PixelFormat,data:UByte Ptr,pitch:Int )#
Creates a new pixmap.
When you have finished with the pixmap, you should call its inherited resource.Resource.Discard method.
Parameters | |
---|---|
width |
width The width of the pixmap in pixels. |
height |
height The height of the pixmap in pixels. |
format |
format The pixmap format. |
data |
data A pointer to the pixmap data. |
pitch |
pitch The pitch of the data. |