RasterSource.this

Creates a new user pattern for providing pixel data.

Use the setter functions to associate callbacks with the returned pattern. The only mandatory callback is acquire.

Since 1.12

  1. this(cairo_pattern_t* cairo_pattern)
  2. this(void* userData, CairoContent content, int width, int height)
    class RasterSource

Parameters

userData void*

the user data to be passed to all callbacks

content CairoContent

content type for the pixel data that will be returned. Knowing the content type ahead of time is used for analysing the operation and picking the appropriate rendering path.

width int

maximum size of the sample area

height int

maximum size of the sample area

Meta