std:std.graphics.Pixmap.New
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. |