アットウィキロゴ

CGContext

CGContext

 class CGContext
   # Managing Graphics Context
   def flush; self end
   def self.Get_type_id; id end
   def release;    end
   def retain;    end
   def synchronize;    end
   
   # Saving and Restoring the Current Graphic State
   def save_g_state; self end
   def restore_g_state; self end
   
   # Getting and Setting Graphics State Parameters
   def get_interpolation_quality; @interpolation_quality end
   def set_flatness(flatness); @flatness=flatness end
   def set_interpolation_quality(quality); @interpolation_quality= quality end
   def set_line_cap;    end
   def set_line_dash;    end
   def set_line_join;    end
   def set_line_width;    end
   def set_miter_limit;    end
   def set_pattern_phase;    end
   def set_fill_pattern;    end
   def set_rendering_intent;    end
   def set_should_antialias;    end
   def set_should_smooth_fonts;    end
   def set_stroke_pattern;    end
   def set_blend_mode;    end
   def set_allows_antialiasing;    end
   
   # Constructing Paths
   def add_arc;    end
   def add_arc_to_point;    end
   def add_curve_to_point;    end
   def add_lines;    end
   def add_line_to_point;    end
   def add_path;    end
   def add_quad_curve_to_point;    end
   def add_rect;    end
   def add_rects;    end
   def begin_path;    end
   def close_path;    end
   def move_to_point;    end
   def add_ellipse_in_rect;    end
   
   # Painting Paths
   def clear_rect;    end
   def draw_path;    end
   def even_odd_fill_path;    end
   def fill_path;    end
   def fill_rect;    end
   def fill_rects;    end
   def fill_ellipse_in_rect;    end
   def stroke_path;    end
   def stroke_rect;    end
   def stroke_rect_with_width;    end
   def replace_path_with_stroked_path;    end
   def stroke_ellipse_in_rect;    end
   def stroke_line_segments;    end
   
   # Getting Information About Paths
   def is_path_empty;    end
   def get_path_current_point;    end
   def get_path_bounding_box;    end
   def path_contains_point;    end
   
   # Setting Color, Color Space, and Shadow Values
   def set_alpha;    end
   def set_CMYK_fill_color;    end
   def set_fill_color;    end
   def set_CMYK_stroke_color;    end
   def set_fill_color_space;    end
   def set_fill_color_with_color;    end
   def set_gray_fill_color;    end
   def set_gray_stroke_color;    end
   def set_RGB_fill_color;    end
   def set_RGB_stroke_color
   def set_shadow
   def set_shadow_with_color
   def set_stroke_color
   def set_stroke_color_space
   def set_stroke_color_with_color
   
   # Transforming User Space
   def concat_CTM;    end
   def get_CTM;    end
   def rotate_CTM;    end
   def scale_CTM;    end
   def translate_CTM;    end
   
   # Using Transparency Layers
   def begin_transparency_layer
   def begin_transparency_layer_with_rect
   def end_transparency_layer
   
   # Drawing an Image to a Graphics Context
   def draw_tiled_image
   def draw_image
   
   # Drawing PDF Content to a Graphics Context
   def draw_PDF_page
   def draw_PDF_document
   
   # Drawing With a Gradient
   def draw_linear_gradient
   def draw_radial_gradient
   
   # Drawing With a Shading
   def draw_shading
   
   # Setting Up a Page-Based Graphics Context
   def begin_page
   def end_page
   
   # Drawing Glyphs
   # 字面の描画
   def show_glyphs(g, count); self end
   def show_glyphs_at_point(x, y, glyphs, count); self end
   def show_glyphs_with_advances(glyphs, advances, count); self end
   def show_glyphs_at_positions()(glyphs, positions, count); self end
   
   # Drawing Text
   # テキストの描画
   def get_text_matrix; @matrix end
   def get_text_position; @text_position end
   def select_font(name, size, text_encoding); @font=[[CTFont]](name, size, text_encoding) end
   def set_character_spacing(spacing); @spacing end
   def set_font; end
   def set_font_size
   def set_text_drawing_mode
   def set_text_matrix
   def set_text_position
   def show_text
   def show_text_at_point
   
   # Converting Between Device Space and User Space
   def get_user_space_to_device_space_transform
   def convert_point_to_device_space
   def convert_point_to_user_space
   def convert_size_to_device_space
   def convert_size_to_user_space
   def convert_rect_to_device_space
   def convert_rect_to_user_space
 end


Functions by Task

Manageing Graphics Contexts


How to Use

 context = NSGraphicsContext.current_context.graphics_port
 context.set_text_matrix CGAffineTransform::Identity

タグ:

+ タグ編集
  • タグ:
最終更新:2010年06月14日 13:59
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。