Method smem
| Improve this Doc View Sourcesmem(Int32, Int32, IntPtr)
plsmem: Set the memory area to be plotted (RGB)
Declaration
public void smem(Int32 maxx, Int32 maxy, IntPtr plotmem)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxx | Size of memory area in the X coordinate. |
Int32 | maxy | Size of memory area in the Y coordinate. |
IntPtr | plotmem | Pointer to the beginning of a user-supplied writeable memory area. |
Remarks
Set the memory area to be plotted (with the mem or memcairo driver) as the dev member of the stream structure. Also set the number of pixels in the memory passed in plotmem, which is a block of memory maxy by maxx by 3 bytes long, say: 480 x 640 x 3 (Y, X, RGB)