std.graphics.Pixmap.New - nitrologic/monkey2 GitHub Wiki
std::std.graphics.std.graphics.Pixmap.New
monkey:monkey.types.Int,height:monkey:monkey.types.Int,format:std:std.graphics.PixelFormat=PixelFormat.RGBA8 )
Method New:Void( width:monkey:monkey.types.Int,height:monkey:monkey.types.Int,format:std:std.graphics.PixelFormat,data:monkey:monkey.types.Ubyte Ptr,pitch:monkey:monkey.types.Int )
Method New:Void( width: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. |