CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
icon.h
1
2#ifndef _aspose_system_drawing_icon_h_
3#define _aspose_system_drawing_icon_h_
4
5#include "fwd.h"
6#include "defines.h"
7#include "system/object.h"
8
9namespace System { namespace Drawing {
10
11class Bitmap;
16class ASPOSECPP_SHARED_CLASS Icon : public Object
17{
18 RTTI_INFO(System::Drawing::Icon, ::System::BaseTypesInfo<System::Object>)
19
20public:
23 ASPOSECPP_SHARED_API Icon(const String & filename);
25 virtual ASPOSECPP_SHARED_API ~Icon();
26
28 ASPOSECPP_SHARED_API SharedPtr<Bitmap> ToBitmap();
29
31 ASPOSECPP_SHARED_API int32_t get_Width() const;
33 ASPOSECPP_SHARED_API int32_t get_Height() const;
34};
35
36}}
37
38
39#endif
Represents a Windows icon. Objects of this class should only be allocated using System::MakeObject() ...
Definition: icon.h:17
int32_t get_Width() const
Returns the width of the icon.
int32_t get_Height() const
Returns the hegiht of the icon.
SharedPtr< Bitmap > ToBitmap()
Converts the current object to a Bitmap object.
virtual ~Icon()
Destructor.
Icon(const String &filename)
Constructs a new instance of Icon class that represents an icon from the specified file.
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
@ Bitmap
Defines color adjustment information for Bitmap objects.
Definition: db_command.h:9