- public void resize_subcontext (int x1, int y1, int x2, int y2)
Sub-contexts can be resized, but not their parents (i.
- public void set_clip_box (int x1, int y1, int x2, int y2)
Sets the clipping limits on this.
- public void get_clip_box (out int x1, out int y1, out int x2, out int y2)
Gets the clipping limits of this.
- public void reset_clip_box ()
Resets the clipping limits on this
to the size of this.
- public void clear (Color bg)
Clears the specified context using the specified background color.
- public void flood_spill (int x1, int y1, int x2, int y2, Color old_c, Color new_c)
Replaces old color with new color in the context in the area bounded
by the rectangle x1, y1, x2, y2.
- public void flood_spill_2 (int x1, int y1, int x2, int y2, Color old_c1, Color new_c1, Color old_c2, Color new_c2)
- public Color get_pixel_at (int x, int y)
Gets the color value of the pixel in the context at the specified
coordinates.
- public Color* get_scan_line (int x1, int x2, int yy)
- public Color fast_get_pixel_at (int x, int y)
Gets the color value of the pixel in the context at the specified
coordinates.
- public Color get_pixel_at_user (int x, int y)
Gets the color value of the pixel in the context at the specified
coordinates.
- public void bit_blt (int x, int y, Context src, int x1, int y1, int x2, int y2, Color op = ( Color) WRITE)
Copies an area bounded by x1, y2, x2, y2 in the source context to the
destination context at the location specified by dx, dy using the specified operation.
- public void bit_blt_1bpp (int x, int y, Context src, int x1, int y1, int x2, int y2, Color fg, Color bg)
Copies an area bounded by x1, y2, x2, y2 in the source context to the
destination context at the location specified by dx, dy using the specified operation.
- public void fast_bit_blt (int x, int y, Context src, int x1, int y1, int x2, int y2, Color op = ( Color) WRITE)
Copies an area bounded by x1, y2, x2, y2 in the source context to the
destination context at the location specified by dx, dy using the specified operation.
- public bool save_to_pbm (string filename, string? comment = null) throws Error
Dump a context in a PBM file (black and white)
- public bool save_to_pgm (string filename, string? comment = null) throws Error
Dump a context in a PGM file (gray scale)
- public bool save_to_ppm (string filename, string? comment = null) throws Error
Dump a context in a PPM file (real color)
- public bool load_from_pnm (string filename)
Load a context from a PNM file.
- public bool load_from_pnm_data (uint8* buffer)
Load a context from a PNM buffer
- public bool save_to_png (string filename) throws Error
Dump a context in a PNG file
- public bool load_from_png (string filename, bool use_alpha = true) throws Error
Load a context from a PNG file
- public bool load_from_jpeg (string filename, int scale = 1) throws Error
Load a context from a JPEG file.
- public bool save_to_jpeg (string filename, int quality = 90) throws Error
Dump a context in a JPEG file
- public bool save_to_jpeg_grayscale (string filename, int quality = 90) throws Error
Dump a context in a Gray JPEG file