CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
image_format.h
1
2#ifndef _image_format_h_
3#define _image_format_h_
4
5#include "fwd.h"
6#include "system/guid.h"
7
8namespace System { namespace Drawing { namespace Imaging {
9
10 class ImageFormat;
13
18 class ASPOSECPP_SHARED_CLASS ImageFormat: public Object
19 {
20 public:
24 ASPOSECPP_SHARED_API ImageFormat(const System::Guid& guid);
25
30 ASPOSECPP_SHARED_API bool Equals(ImageFormatPtr format) const;
32 System::Guid get_Guid() const { return m_guid; }
33
34 public:
36 static ImageFormatPtr get_MemoryBmp() { return m_memory_bmp; }
38 static ImageFormatPtr get_Bmp() { return m_bmp; }
40 static ImageFormatPtr get_Emf() { return m_emf; }
42 static ImageFormatPtr get_Wmf() { return m_wmf; }
44 static ImageFormatPtr get_Gif() { return m_gif; }
46 static ImageFormatPtr get_Jpeg() { return m_jpeg; }
48 static ImageFormatPtr get_Png() { return m_png; }
50 static ImageFormatPtr get_Tiff() { return m_tiff; }
52 static ImageFormatPtr get_Exif() { return m_exif; }
54 static ImageFormatPtr get_Icon() { return m_icon; }
56 ASPOSECPP_SHARED_API System::String ToString() const;
57 private:
59 static const ImageFormatPtr ASPOSECPP_SHARED_API m_memory_bmp;
61 static const ImageFormatPtr ASPOSECPP_SHARED_API m_bmp;
63 static const ImageFormatPtr ASPOSECPP_SHARED_API m_emf;
65 static const ImageFormatPtr ASPOSECPP_SHARED_API m_wmf;
67 static const ImageFormatPtr ASPOSECPP_SHARED_API m_jpeg;
69 static const ImageFormatPtr ASPOSECPP_SHARED_API m_png;
71 static const ImageFormatPtr ASPOSECPP_SHARED_API m_gif;
73 static const ImageFormatPtr ASPOSECPP_SHARED_API m_tiff;
75 static const ImageFormatPtr ASPOSECPP_SHARED_API m_exif;
77 static const ImageFormatPtr ASPOSECPP_SHARED_API m_photo_cd;
79 static const ImageFormatPtr ASPOSECPP_SHARED_API m_flash_pix;
81 static const ImageFormatPtr ASPOSECPP_SHARED_API m_icon;
82
84 System::Guid m_guid;
85 };
86
87}}}
88
89
90#endif
Represents the file format of an image. Objects of this class should only be allocated using System::...
Definition: image_format.h:19
ImageFormat(const System::Guid &guid)
Constructs an instance of ImageFormat class that represents an image format format associated with th...
static ImageFormatPtr get_Tiff()
Returns a shared pointer to an ImageFormat object that represents the Tagged Image File Format (TIFF)...
Definition: image_format.h:50
static ImageFormatPtr get_Wmf()
Returns a shared pointer to an ImageFormat object that represents the Windows metafile (WMF) image fo...
Definition: image_format.h:42
bool Equals(ImageFormatPtr format) const
Determines if the image formats represented by the current and specified objects are equal.
static ImageFormatPtr get_Emf()
Returns a shared pointer to an ImageFormat object that represents the enhanced metafile format.
Definition: image_format.h:40
static ImageFormatPtr get_Exif()
Returns a shared pointer to an ImageFormat object that represents the Exchangeable Image File (Exif) ...
Definition: image_format.h:52
System::String ToString() const
Converts this ImageFormat object to a human-readable string.
static ImageFormatPtr get_Png()
Returns a shared pointer to an ImageFormat object that represents the W3C Portable Network Graphics (...
Definition: image_format.h:48
static ImageFormatPtr get_Bmp()
Returns a shared pointer to an ImageFormat object that represents the bitmap image format.
Definition: image_format.h:38
static ImageFormatPtr get_Jpeg()
Returns a shared pointer to an ImageFormat object that represents the Joint Photographic Experts Grou...
Definition: image_format.h:46
static ImageFormatPtr get_Gif()
Returns a shared pointer to an ImageFormat object that represents the Graphics Interchange Format (GI...
Definition: image_format.h:44
System::Guid get_Guid() const
Returns the GUID associated with the image format represented by the current object.
Definition: image_format.h:32
static ImageFormatPtr get_Icon()
Returns a shared pointer to an ImageFormat object that represents the Windows icon image format.
Definition: image_format.h:54
static ImageFormatPtr get_MemoryBmp()
Returns a shared pointer to an ImageFormat object that represents the format of a bitmap in memory.
Definition: image_format.h:36
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
SharedPtr< ImageFormat > ImageFormatPtr
An alias for a shared pointer to an instance of ImageFormat class.
Definition: image_format.h:12
Definition: db_command.h:9