`plsmem`: Set the memory area to be plotted (RGB)
Prev | Chapter 17. The Common API for PLplot | Next

#### `plsmem`: Set the memory area to be plotted (RGB)

`plsmem (` | maxx ,
| maxy ,
| plotmem `)`;

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)

This memory will have to be freed by the user!

`maxx` (``PLINT``, input)

  Size of memory area in the X coordinate.

`maxy` (``PLINT``, input)

  Size of memory area in the Y coordinate.

`plotmem` (``PLPointer``, input)

  Pointer to the beginning of a user-supplied writeable memory area.

Redacted form: `plsmem(maxx, maxy, plotmem)`

This function is not used in any examples.

Prev | Up | Next
`plsmaj`: Set length of major ticks | Home | `plsmema`: Set the memory area to be plotted (RGBA)