new_from_context


Description:

public static Pixmap new_from_context (Context context)

Converts a graphics context to a pixmap fill pattern.

This is useful when the pixmap can be created with graphics drawing operations. NOTE: the pixmap pattern and the original context share the drawing RAM, thus if the context is redrawn the fill pattern changes as well.

Parameters:

context

the context

Returns:

a new Pixmap or null if there was an error.