Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "[ Image functions in GDI+. For more information, please see: MSDN Image Functions: http://msdn.microsoft.com/en-us/library/ms534041(VS.85).aspx ]" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2017-04-20 06:00:43 -0800 (Thu, 20 Apr 2017) $" revision: "$Revision: 100241 $" class interface WEL_GDIP_IMAGE create default_create -- Default creation method. -- (from WEL_GDIP_ANY) create {WEL_GDIP_IMAGE} make_with_item (a_item: POINTER) -- Creation method require not_void: a_item /= default_pointer ensure set: item = a_item feature -- Access gdi_plus_handle: POINTER -- Handle to gdiplus.dll if present. -- (from WEL_GDIP_ANY) generating_type: TYPE [detachable WEL_GDIP_IMAGE] -- 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 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_IMAGE): 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_IMAGE): 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_IMAGE): 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_IMAGE) -- 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_IMAGE) -- 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_IMAGE -- 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_IMAGE) -- 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_IMAGE -- 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_IMAGE -- 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_IMAGE -- 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 require 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 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 require valid: a_pointer /= default_pointer load_image_from_path (a_file_name: PATH) -- Redefine load_image_from_raw_file (a_file: RAW_FILE) -- Load image from a_file require not_void: a_file /= Void ready_for_read: a_file.is_open_read load_image_from_stream (a_stream: WEL_COM_ISTREAM) -- Load image from a_stream require not_void: a_stream /= Void save_image_to_memory: MANAGED_POINTER -- Save image data to result pointer save_image_to_path (a_file_name: PATH) -- Save data to a file a_file_name. require 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 require 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 require 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 require not_void: a_file_name /= Void exists: exists save_image_to_raw_file (a_file: RAW_FILE) -- Write image data to a_file require 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. require 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 require 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 require 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 require not_void: a_stream /= Void exists: exists feature -- Destory destroy_item -- Redefine 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. ensure not_void: Result /= Void get_thumbnail_image (a_width, a_height: INTEGER_32): WEL_GDIP_IMAGE -- Gets a thumbnail image from this Image object require exists: exists height: INTEGER_32 -- Height require 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 require exists: exists ensure valid: (create {WEL_GDIP_PIXEL_FORMAT} end).is_valid_format (Result) raw_format: detachable WEL_GUID -- Image format guid. require exists: exists width: INTEGER_32 -- Width require 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-2017, 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_IMAGE
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org