Context
Object Hierarchy:
Description:
[ Compact ]
public class Context
Content:
Properties:
- public unowned Context current { get; }
- public unowned Context screen { get; }
Static methods:
- public static Context? create (int width, int height, char*[]? memory = null, out Context? where = null)
- public static Context? create_with_mode (FrameMode mode, int width, int height, char*[]? memory = null, out Context? where = null)
- public static Context? create_subcontext (int x1, int y1, int x2, int y2, Context parent, out Context? where = null)
- public static Context? save (out Context? where = null)
Methods:
- public void resize_subcontext (int x1, int y1, int x2, int y2)
- public void @set ()
- public void set_clip_box (int x1, int y1, int x2, int y2)
- public void get_clip_box (out int x1, out int y1, out int x2, out int y2)
- public void reset_clip_box ()
- public void clear (Color bg)
- public void flood_spill (int x1, int y1, int x2, int y2, Color old_c, Color new_c)
- 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 pixel (int x, int y)
- public Color* get_scan_line (int x1, int x2, int yy)
- public Color pixel_no_clip (int x, int y)
- public Pattern to_pixmap ()
- public Color user_pixel (int x, int y)
- public Result save_to_pbm (string file_name, string? comment = null)
- public Result save_to_pgm (string file_name, string? comment = null)
- public Result save_to_ppm (string file_name, string? comment = null)
- public Result load_from_pnm (string file_name)
- public Result load_from_pnm_buffer (char* buffer)
- public Result save_to_png (string file_name)
- public Result load_from_png (string file_name, bool use_alpha = true)
- public Result load_from_jpeg (string file_name, int scale)
- public Result save_to_jpeg (string file_name, int quality = 90)
- public Result save_to_gray_jpeg (string file_name, int quality = 90)
Fields: