Automatic generation produced by ISE Eiffel
note description: "[ Abstraction of a graphic metafile. A metafile contains recors that describe a sequence of graphics API calls. A Metafile can be recorded (i.e. constructed) and played back (i.e. displayed). ]" date: "$Date: 2013-05-20 15:15:17 -0800 (Mon, 20 May 2013) $" revision: "$Revision: 92557 $" class interface WEL_GDIP_METAFILE create default_create -- Default creation method. -- (from WEL_GDIP_ANY) feature -- Access gdi_plus_handle: POINTER -- Handle to gdiplus.dll if present. -- (from WEL_GDIP_ANY) generating_type: TYPE [detachable WEL_GDIP_METAFILE] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty header: WEL_METAFILE_HEADER -- Metafile header structure. require exists: exists item: POINTER -- Generic Windows handle or structure pointer. -- Can be a HWND, HICON, RECT *, WNDCLASS *, etc... -- (from WEL_ANY) feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: WEL_GDIP_METAFILE): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: WEL_GDIP_METAFILE): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "≜" (other: WEL_GDIP_METAFILE): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void exists: BOOLEAN -- Does the `item` exist? -- (from WEL_ANY) ensure -- from WEL_ANY Result = (item /= default_pointer) same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) shared: BOOLEAN -- Is `item` shared by another object? -- If False (by default), `item` will -- be destroyed by `destroy_item`. -- If True, `item` will not be destroyed. -- (from WEL_ANY) feature -- Status setting set_shared -- Set `shared` to True. -- (from WEL_ANY) ensure -- from WEL_ANY shared: shared set_unshared -- Set `shared` to False. -- (from WEL_ANY) ensure -- from WEL_ANY unshared: not shared feature -- Element change set_item (an_item: POINTER) -- Set `item` with an_item -- (from WEL_ANY) ensure -- from WEL_ANY item_set: item = an_item feature -- Removal dispose -- Destroy the inner structure of Current. -- -- This function should be called by the GC when the -- object is collected or by the user if Current is -- no more usefull. -- (from WEL_ANY) feature -- Duplication copy (other: WEL_GDIP_METAFILE) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: WEL_GDIP_METAFILE) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: WEL_GDIP_METAFILE -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: WEL_GDIP_METAFILE) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: WEL_GDIP_METAFILE -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: WEL_GDIP_METAFILE -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable WEL_GDIP_METAFILE -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class feature -- Command clone_rectangle_pixel_format (a_rectangle: WEL_GDIP_RECT; a_format: INTEGER_32): WEL_GDIP_BITMAP -- Close Current with option a_rectangle and a_format -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE valid: a_rectangle /= Void and then (a_rectangle.width > 0 and a_rectangle.height > 0) valid: (create {WEL_GDIP_PIXEL_FORMAT} end).is_valid_format (a_format) exists: exists ensure -- from WEL_GDIP_IMAGE not_void: Result /= Void size_correct: Result.width = a_rectangle.width and Result.height = a_rectangle.height load_image_from_memory (a_pointer: POINTER; a_byte_counts: NATURAL_32) -- Load image from a_pointer -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE valid: a_pointer /= default_pointer load_image_from_path (a_file_name: PATH) -- Redefine -- (from WEL_GDIP_IMAGE) load_image_from_raw_file (a_file: RAW_FILE) -- Load image from a_file -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file /= Void ready_for_read: a_file.is_open_read load_image_from_stream (a_stream: WEL_COM_ISTREAM) -- Load Metafile from a_stream. require -- from WEL_GDIP_IMAGE not_void: a_stream /= Void save_image_to_memory: MANAGED_POINTER -- Save image data to result pointer -- (from WEL_GDIP_IMAGE) save_image_to_path (a_file_name: PATH) -- Save data to a file a_file_name. -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file_name /= Void exists: exists save_image_to_path_with_encoder (a_file_name: PATH; a_format: WEL_GDIP_IMAGE_ENCODER) -- Save data to a file a_file_name with image encoder parameter -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file_name /= Void not_void: a_format /= Void exists: exists save_image_to_path_with_encoder_and_parameters (a_file_name: PATH; a_format: WEL_GDIP_IMAGE_ENCODER; a_parameters: detachable WEL_GDIP_IMAGE_ENCODER_PARAMETERS) -- Save data to a file a_file_name with image encoder and parameters -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file_name /= Void not_void: a_format /= Void exists: exists save_image_to_path_with_parameters (a_file_name: PATH; a_parameters: detachable WEL_GDIP_IMAGE_ENCODER_PARAMETERS) -- Save data to a file a_file_name with a_parameters options -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file_name /= Void exists: exists save_image_to_raw_file (a_file: RAW_FILE) -- Write image data to a_file -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_file /= Void valid: a_file.is_open_write exists: exists save_image_to_stream (a_stream: WEL_COM_ISTREAM) -- Save data to a file. -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_stream /= Void exists: exists save_image_to_stream_with_encoder (a_stream: WEL_COM_ISTREAM; a_format: WEL_GDIP_IMAGE_ENCODER) -- Save data to a stream with image encoder parameter -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_stream /= Void not_void: a_format /= Void exists: exists save_image_to_stream_with_encoder_and_parameters (a_stream: WEL_COM_ISTREAM; a_format: WEL_GDIP_IMAGE_ENCODER; a_parameters: detachable WEL_GDIP_IMAGE_ENCODER_PARAMETERS) -- Save image to a_stream -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_stream /= Void not_void: a_format /= Void exists: exists save_image_to_stream_with_parameters (a_stream: WEL_COM_ISTREAM; a_parameters: detachable WEL_GDIP_IMAGE_ENCODER_PARAMETERS) -- Save data to a stream with a_parameters options -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE not_void: a_stream /= Void exists: exists feature -- Destory destroy_item -- Redefine -- (from WEL_GDIP_IMAGE) require -- from WEL_ANY exists: exists feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Query all_image_encoders: ARRAYED_LIST [WEL_GDIP_IMAGE_CODEC_INFO] -- All image encoders. -- (from WEL_GDIP_IMAGE) ensure -- from WEL_GDIP_IMAGE not_void: Result /= Void get_thumbnail_image (a_width, a_height: INTEGER_32): WEL_GDIP_IMAGE -- Gets a thumbnail image from this Image object -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE exists: exists height: INTEGER_32 -- Height -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE exists: exists is_gdi_plus_installed: BOOLEAN -- If gdiplus.dll can be found on user's machine? -- (from WEL_GDIP_ANY) pixel_format: INTEGER_32 -- Pixel format in memory -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE exists: exists ensure -- from WEL_GDIP_IMAGE valid: (create {WEL_GDIP_PIXEL_FORMAT} end).is_valid_format (Result) raw_format: detachable WEL_GUID -- Image format guid. -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE exists: exists width: INTEGER_32 -- Width -- (from WEL_GDIP_IMAGE) require -- from WEL_GDIP_IMAGE exists: exists invariant -- from WEL_GDIP_ANY support: is_gdi_plus_installed -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2011, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class WEL_GDIP_METAFILE -- Generated by Eiffel Studio --
For more details: eiffel.org