Module: Emf::Emr::Binary::Records

Defined in:
lib/emf/emr/binary/records.rb,
lib/emf/emr/binary/records/arc.rb,
lib/emf/emr/binary/records/eof.rb,
lib/emf/emr/binary/records/pie.rb,
lib/emf/emr/binary/records/raw.rb,
lib/emf/emr/binary/records/chord.rb,
lib/emf/emr/binary/records/arc_to.rb,
lib/emf/emr/binary/records/bit_blt.rb,
lib/emf/emr/binary/records/comment.rb,
lib/emf/emr/binary/records/ellipse.rb,
lib/emf/emr/binary/records/line_to.rb,
lib/emf/emr/binary/records/plg_blt.rb,
lib/emf/emr/binary/records/polygon.rb,
lib/emf/emr/binary/records/save_dc.rb,
lib/emf/emr/binary/records/end_path.rb,
lib/emf/emr/binary/records/fill_rgn.rb,
lib/emf/emr/binary/records/mask_blt.rb,
lib/emf/emr/binary/records/polyline.rb,
lib/emf/emr/binary/records/set_rop2.rb,
lib/emf/emr/binary/records/angle_arc.rb,
lib/emf/emr/binary/records/fill_path.rb,
lib/emf/emr/binary/records/frame_rgn.rb,
lib/emf/emr/binary/records/paint_rgn.rb,
lib/emf/emr/binary/records/poly_draw.rb,
lib/emf/emr/binary/records/polygon16.rb,
lib/emf/emr/binary/records/rectangle.rb,
lib/emf/emr/binary/records/abort_path.rb,
lib/emf/emr/binary/records/begin_path.rb,
lib/emf/emr/binary/records/create_pen.rb,
lib/emf/emr/binary/records/ext_escape.rb,
lib/emf/emr/binary/records/gls_record.rb,
lib/emf/emr/binary/records/invert_rgn.rb,
lib/emf/emr/binary/records/move_to_ex.rb,
lib/emf/emr/binary/records/polyline16.rb,
lib/emf/emr/binary/records/restore_dc.rb,
lib/emf/emr/binary/records/round_rect.rb,
lib/emf/emr/binary/records/set_layout.rb,
lib/emf/emr/binary/records/widen_path.rb,
lib/emf/emr/binary/records/alpha_blend.rb,
lib/emf/emr/binary/records/draw_escape.rb,
lib/emf/emr/binary/records/poly_bezier.rb,
lib/emf/emr/binary/records/poly_draw16.rb,
lib/emf/emr/binary/records/polyline_to.rb,
lib/emf/emr/binary/records/set_bk_mode.rb,
lib/emf/emr/binary/records/set_metargn.rb,
lib/emf/emr/binary/records/set_pixel_v.rb,
lib/emf/emr/binary/records/stretch_blt.rb,
lib/emf/emr/binary/records/stroke_path.rb,
lib/emf/emr/binary/records/close_figure.rb,
lib/emf/emr/binary/records/flatten_path.rb,
lib/emf/emr/binary/records/named_escape.rb,
lib/emf/emr/binary/records/pixel_format.rb,
lib/emf/emr/binary/records/poly_polygon.rb,
lib/emf/emr/binary/records/set_bk_color.rb,
lib/emf/emr/binary/records/set_icm_mode.rb,
lib/emf/emr/binary/records/set_map_mode.rb,
lib/emf/emr/binary/records/delete_object.rb,
lib/emf/emr/binary/records/gradient_fill.rb,
lib/emf/emr/binary/records/poly_bezier16.rb,
lib/emf/emr/binary/records/poly_polyline.rb,
lib/emf/emr/binary/records/polyline_to16.rb,
lib/emf/emr/binary/records/select_object.rb,
lib/emf/emr/binary/records/create_palette.rb,
lib/emf/emr/binary/records/ext_create_pen.rb,
lib/emf/emr/binary/records/ext_flood_fill.rb,
lib/emf/emr/binary/records/ext_text_out_a.rb,
lib/emf/emr/binary/records/ext_text_out_w.rb,
lib/emf/emr/binary/records/poly_bezier_to.rb,
lib/emf/emr/binary/records/poly_polygon16.rb,
lib/emf/emr/binary/records/poly_textout_a.rb,
lib/emf/emr/binary/records/poly_textout_w.rb,
lib/emf/emr/binary/records/resize_palette.rb,
lib/emf/emr/binary/records/select_palette.rb,
lib/emf/emr/binary/records/set_colorspace.rb,
lib/emf/emr/binary/records/set_text_align.rb,
lib/emf/emr/binary/records/set_text_color.rb,
lib/emf/emr/binary/records/small_text_out.rb,
lib/emf/emr/binary/records/stretch_dibits.rb,
lib/emf/emr/binary/records/offset_clip_rgn.rb,
lib/emf/emr/binary/records/poly_polyline16.rb,
lib/emf/emr/binary/records/realize_palette.rb,
lib/emf/emr/binary/records/set_linked_ufis.rb,
lib/emf/emr/binary/records/set_miter_limit.rb,
lib/emf/emr/binary/records/transparent_blt.rb,
lib/emf/emr/binary/records/poly_bezier_to16.rb,
lib/emf/emr/binary/records/select_clip_path.rb,
lib/emf/emr/binary/records/set_brush_org_ex.rb,
lib/emf/emr/binary/records/set_mapper_flags.rb,
lib/emf/emr/binary/records/create_colorspace.rb,
lib/emf/emr/binary/records/create_mono_brush.rb,
lib/emf/emr/binary/records/delete_colorspace.rb,
lib/emf/emr/binary/records/exclude_clip_rect.rb,
lib/emf/emr/binary/records/force_ufi_mapping.rb,
lib/emf/emr/binary/records/set_arc_direction.rb,
lib/emf/emr/binary/records/set_icm_profile_a.rb,
lib/emf/emr/binary/records/set_icm_profile_w.rb,
lib/emf/emr/binary/records/set_window_ext_ex.rb,
lib/emf/emr/binary/records/set_window_org_ex.rb,
lib/emf/emr/binary/records/gls_bounded_record.rb,
lib/emf/emr/binary/records/set_poly_fill_mode.rb,
lib/emf/emr/binary/records/create_colorspace_w.rb,
lib/emf/emr/binary/records/ext_select_clip_rgn.rb,
lib/emf/emr/binary/records/intersect_clip_rect.rb,
lib/emf/emr/binary/records/scale_window_ext_ex.rb,
lib/emf/emr/binary/records/set_palette_entries.rb,
lib/emf/emr/binary/records/set_viewport_ext_ex.rb,
lib/emf/emr/binary/records/set_viewport_org_ex.rb,
lib/emf/emr/binary/records/set_world_transform.rb,
lib/emf/emr/binary/records/set_dibits_to_device.rb,
lib/emf/emr/binary/records/set_stretch_blt_mode.rb,
lib/emf/emr/binary/records/stroke_and_fill_path.rb,
lib/emf/emr/binary/records/color_correct_palette.rb,
lib/emf/emr/binary/records/create_brush_indirect.rb,
lib/emf/emr/binary/records/scale_viewport_ext_ex.rb,
lib/emf/emr/binary/records/colormatch_to_target_w.rb,
lib/emf/emr/binary/records/create_font_indirect_w.rb,
lib/emf/emr/binary/records/modify_world_transform.rb,
lib/emf/emr/binary/records/set_text_justification.rb,
lib/emf/emr/binary/records/create_dib_pattern_brush_pt.rb

Defined Under Namespace

Classes: AbortPath, AlphaBlend, AngleArc, Arc, ArcTo, BeginPath, BitBlt, Chord, CloseFigure, ColorCorrectPalette, ColorMatchToTargetW, Comment, CreateBrushIndirect, CreateColorspace, CreateColorspaceW, CreateDibPatternBrushPt, CreateFontIndirectW, CreateMonoBrush, CreatePalette, CreatePen, DeleteColorspace, DeleteObject, DrawEscape, Ellipse, EndPath, Eof, ExcludeClipRect, ExtCreatePen, ExtEscape, ExtFloodFill, ExtSelectClipRgn, ExtTextOutA, ExtTextOutW, FillPath, FillRgn, FlattenPath, ForceUfiMapping, FrameRgn, GlsBoundedRecord, GlsRecord, GradientFill, IntersectClipRect, InvertRgn, LineTo, MaskBlt, ModifyWorldTransform, MoveToEx, NamedEscape, OffsetClipRgn, PaintRgn, Pie, PixelFormat, PlgBlt, PolyBezier, PolyBezier16, PolyBezierTo, PolyBezierTo16, PolyDraw, PolyDraw16, PolyPolygon, PolyPolygon16, PolyPolyline, PolyPolyline16, PolyTextOutA, PolyTextOutW, Polygon, Polygon16, Polyline, Polyline16, PolylineTo, PolylineTo16, Raw, RealizePalette, Rectangle, ResizePalette, RestoreDc, RoundRect, SaveDc, ScaleViewportExtEx, ScaleWindowExtEx, SelectClipPath, SelectObject, SelectPalette, SetArcDirection, SetBkColor, SetBkMode, SetBrushOrgEx, SetColorspace, SetDibitsToDevice, SetIcmMode, SetIcmProfileA, SetIcmProfileW, SetLayout, SetLinkedUfis, SetMapMode, SetMapperFlags, SetMetArgn, SetMiterLimit, SetPaletteEntries, SetPixelV, SetPolyFillMode, SetRop2, SetStretchBltMode, SetTextAlign, SetTextColor, SetTextJustification, SetViewportExtEx, SetViewportOrgEx, SetWindowExtEx, SetWindowOrgEx, SetWorldTransform, SmallTextOut, StretchBlt, StretchDIBits, StrokeAndFillPath, StrokePath, TransparentBlt, WidenPath

Constant Summary collapse

TYPE_TO_NAME =
{
  Binary::TypeCodes::EOF => :Eof,
  Binary::TypeCodes::SETTEXTCOLOR => :SetTextColor,
  Binary::TypeCodes::SETBKCOLOR => :SetBkColor,
  Binary::TypeCodes::SETBKMODE => :SetBkMode,
  Binary::TypeCodes::SETMAPMODE => :SetMapMode,
  Binary::TypeCodes::SETROP2 => :SetRop2,
  Binary::TypeCodes::SETPOLYFILLMODE => :SetPolyFillMode,
  Binary::TypeCodes::SETTEXTALIGN => :SetTextAlign,
  Binary::TypeCodes::SETSTRETCHBLTMODE => :SetStretchBltMode,
  Binary::TypeCodes::SAVEDC => :SaveDc,
  Binary::TypeCodes::RESTOREDC => :RestoreDc,
  Binary::TypeCodes::SELECTOBJECT => :SelectObject,
  Binary::TypeCodes::DELETEOBJECT => :DeleteObject,
  Binary::TypeCodes::CREATEPEN => :CreatePen,
  Binary::TypeCodes::CREATEBRUSHINDIRECT => :CreateBrushIndirect,
  Binary::TypeCodes::SETWINDOWORGEX => :SetWindowOrgEx,
  Binary::TypeCodes::SETWINDOWEXTEX => :SetWindowExtEx,
  Binary::TypeCodes::SETVIEWPORTORGEX => :SetViewportOrgEx,
  Binary::TypeCodes::SETVIEWPORTEXTEX => :SetViewportExtEx,
  Binary::TypeCodes::SETBRUSHORGEX => :SetBrushOrgEx,
  Binary::TypeCodes::MOVETOEX => :MoveToEx,
  Binary::TypeCodes::LINETO => :LineTo,
  Binary::TypeCodes::RECTANGLE => :Rectangle,
  Binary::TypeCodes::ELLIPSE => :Ellipse,
  Binary::TypeCodes::ROUNDRECT => :RoundRect,
  Binary::TypeCodes::ARC => :Arc,
  Binary::TypeCodes::ARCTO => :ArcTo,
  Binary::TypeCodes::CHORD => :Chord,
  Binary::TypeCodes::PIE => :Pie,
  Binary::TypeCodes::ANGLEARC => :AngleArc,
  Binary::TypeCodes::SETARCDIRECTION => :SetArcDirection,
  Binary::TypeCodes::POLYGON => :Polygon,
  Binary::TypeCodes::POLYLINE => :Polyline,
  Binary::TypeCodes::POLYBEZIER => :PolyBezier,
  Binary::TypeCodes::POLYGON16 => :Polygon16,
  Binary::TypeCodes::POLYLINE16 => :Polyline16,
  Binary::TypeCodes::POLYBEZIER16 => :PolyBezier16,
  Binary::TypeCodes::POLYBEZIERTO => :PolyBezierTo,
  Binary::TypeCodes::POLYBEZIERTO16 => :PolyBezierTo16,
  Binary::TypeCodes::POLYLINETO => :PolylineTo,
  Binary::TypeCodes::POLYLINETO16 => :PolylineTo16,
  Binary::TypeCodes::POLYDRAW => :PolyDraw,
  Binary::TypeCodes::POLYDRAW16 => :PolyDraw16,
  Binary::TypeCodes::POLYPOLYLINE => :PolyPolyline,
  Binary::TypeCodes::POLYPOLYGON => :PolyPolygon,
  Binary::TypeCodes::POLYPOLYLINE16 => :PolyPolyline16,
  Binary::TypeCodes::POLYPOLYGON16 => :PolyPolygon16,
  Binary::TypeCodes::COMMENT => :Comment,
  Binary::TypeCodes::SETWORLDTRANSFORM => :SetWorldTransform,
  Binary::TypeCodes::MODIFYWORLDTRANSFORM => :ModifyWorldTransform,
  Binary::TypeCodes::BEGINPATH => :BeginPath,
  Binary::TypeCodes::ENDPATH => :EndPath,
  Binary::TypeCodes::CLOSEFIGURE => :CloseFigure,
  Binary::TypeCodes::FILLPATH => :FillPath,
  Binary::TypeCodes::STROKEPATH => :StrokePath,
  Binary::TypeCodes::STROKEANDFILLPATH => :StrokeAndFillPath,
  Binary::TypeCodes::FLATTENPATH => :FlattenPath,
  Binary::TypeCodes::WIDENPATH => :WidenPath,
  Binary::TypeCodes::SELECTCLIPPATH => :SelectClipPath,
  Binary::TypeCodes::ABORTPATH => :AbortPath,
  Binary::TypeCodes::SETMITERLIMIT => :SetMiterLimit,
  Binary::TypeCodes::EXTTEXTOUTW => :ExtTextOutW,
  Binary::TypeCodes::EXTTEXTOUTA => :ExtTextOutA,
  Binary::TypeCodes::EXTCREATEFONTINDIRECTW => :CreateFontIndirectW,
  Binary::TypeCodes::EXTCREATEPEN => :ExtCreatePen,
  Binary::TypeCodes::STRETCHDIBITS => :StretchDIBits,
  Binary::TypeCodes::SETPIXELV => :SetPixelV,
  Binary::TypeCodes::OFFSETCLIPRGN => :OffsetClipRgn,
  Binary::TypeCodes::SETMETARGN => :SetMetArgn,
  Binary::TypeCodes::EXCLUDECLIPRECT => :ExcludeClipRect,
  Binary::TypeCodes::INTERSECTCLIPRECT => :IntersectClipRect,
  Binary::TypeCodes::SCALEVIEWPORTEXTEX => :ScaleViewportExtEx,
  Binary::TypeCodes::SCALEWINDOWEXTEX => :ScaleWindowExtEx,
  Binary::TypeCodes::SETMAPPERFLAGS => :SetMapperFlags,
  Binary::TypeCodes::REALIZEPALETTE => :RealizePalette,
  Binary::TypeCodes::SELECTPALETTE => :SelectPalette,
  Binary::TypeCodes::CREATEPALETTE => :CreatePalette,
  Binary::TypeCodes::RESIZEPALETTE => :ResizePalette,
  Binary::TypeCodes::SETPALETTEENTRIES => :SetPaletteEntries,
  Binary::TypeCodes::EXTFLOODFILL => :ExtFloodFill,
  Binary::TypeCodes::EXTSELECTCLIPRGN => :ExtSelectClipRgn,
  Binary::TypeCodes::FILLRGN => :FillRgn,
  Binary::TypeCodes::FRAMERGN => :FrameRgn,
  Binary::TypeCodes::INVERTRGN => :InvertRgn,
  Binary::TypeCodes::PAINTRGN => :PaintRgn,
  Binary::TypeCodes::BITBLT => :BitBlt,
  Binary::TypeCodes::STRETCHBLT => :StretchBlt,
  Binary::TypeCodes::MASKBLT => :MaskBlt,
  Binary::TypeCodes::PLGBLT => :PlgBlt,
  Binary::TypeCodes::SETDIBITSTODEVICE => :SetDIBitsToDevice,
  Binary::TypeCodes::ALPHABLEND => :AlphaBlend,
  Binary::TypeCodes::SETLAYOUT => :SetLayout,
  Binary::TypeCodes::TRANSPARENTBLT => :TransparentBlt,
  Binary::TypeCodes::GRADIENTFILL => :GradientFill,
  Binary::TypeCodes::SETICMMODE => :SetIcmMode,
  Binary::TypeCodes::CREATEMONOBRUSH => :CreateMonoBrush,
  Binary::TypeCodes::CREATEDIBPATTERNBRUSHPT => :CreateDibPatternBrushPt,
  Binary::TypeCodes::SMALLTEXTOUT => :SmallTextOut,
  Binary::TypeCodes::DRAWESCAPE => :DrawEscape,
  Binary::TypeCodes::EXTESCAPE => :ExtEscape,
  Binary::TypeCodes::NAMEDESCAPE => :NamedEscape,
  Binary::TypeCodes::COLORCORRECTPALETTE => :ColorCorrectPalette,
  Binary::TypeCodes::SETICMPROFILEA => :SetIcmProfileA,
  Binary::TypeCodes::SETICMPROFILEW => :SetIcmProfileW,
  Binary::TypeCodes::FORCEUFIMAPPING => :ForceUfiMapping,
  Binary::TypeCodes::SETLINKEDUFIS => :SetLinkedUfis,
  Binary::TypeCodes::COLORMATCHTOTARGETW => :ColorMatchToTargetW,
  Binary::TypeCodes::CREATECOLORSPACEW => :CreateColorspaceW,
  Binary::TypeCodes::CREATECOLORSPACE => :CreateColorspace,
  Binary::TypeCodes::SETCOLORSPACE => :SetColorspace,
  Binary::TypeCodes::DELETECOLORSPACE => :DeleteColorspace,
  Binary::TypeCodes::GLSRECORD => :GlsRecord,
  Binary::TypeCodes::GLSBOUNDEDRECORD => :GlsBoundedRecord,
  Binary::TypeCodes::POLYTEXTOUTA => :PolyTextOutA,
  Binary::TypeCodes::POLYTEXTOUTW => :PolyTextOutW,
  Binary::TypeCodes::PIXELFORMAT => :PixelFormat,
  Binary::TypeCodes::SETTEXTJUSTIFICATION => :SetTextJustification
}.freeze

Class Method Summary collapse

Class Method Details

.lookup(type_id) ⇒ Object



251
252
253
254
# File 'lib/emf/emr/binary/records.rb', line 251

def self.lookup(type_id)
  name = TYPE_TO_NAME[type_id]
  name ? const_get(name) : Raw
end