CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
bitmap_data.h
1
2#pragma once
3
4#include "fwd.h"
5#include "drawing/imaging/pixel_format.h"
6#include "system/object.h"
7
8namespace System { namespace Drawing { class Bitmap; } }
9
10namespace System { namespace Drawing { namespace Imaging {
11
12 class BitmapData;
13
20 class ASPOSECPP_SHARED_CLASS BitmapData : public Object
21 {
22 public:
24 ASPOSECPP_SHARED_API int get_Width() const;
27 ASPOSECPP_SHARED_API void set_Width(int value);
29 ASPOSECPP_SHARED_API int get_Height() const;
32 ASPOSECPP_SHARED_API void set_Height(int value);
34 ASPOSECPP_SHARED_API int get_Stride() const;
37 ASPOSECPP_SHARED_API void set_Stride(int value);
39 ASPOSECPP_SHARED_API IntPtr get_Scan0() const;
42 ASPOSECPP_SHARED_API void set_Scan0(IntPtr value);
44 ASPOSECPP_SHARED_API PixelFormat get_PixelFormat() const;
47 ASPOSECPP_SHARED_API void set_PixelFormat(PixelFormat value);
48
49 private:
50
52 int m_x = 0;
53 int m_y = 0;
55 int m_width = 0;
57 int m_height = 0;
59 int m_stride = 0;
61 int m_pixel_format = 0;
63 std::unique_ptr<uint8_t[]> m_scan0;
64
66 int m_reserved = 0;
67 };
68
69}}}
Represents a GDI+ bitmap image. Objects of this class should only be allocated using System::MakeObje...
Definition: bitmap.h:64
Represents a set of attributes of a bitmap image. Objects of this class should only be allocated usin...
Definition: bitmap_data.h:21
IntPtr get_Scan0() const
Returns the address of the first pixel data in the bitmap.
PixelFormat get_PixelFormat() const
Returns the pixel format of the bitmap image.
void set_Height(int value)
Sets the height of the image in pixels.
int get_Width() const
Returns the width of the image in pixels.
void set_Scan0(IntPtr value)
Sets the address of the first pixel data in the bitmap.
void set_Stride(int value)
Sets the stride width of the image in bytes.
int get_Height() const
Returns the height of the image in pixels.
void set_Width(int value)
Sets the width of the image in pixels.
void set_PixelFormat(PixelFormat value)
Sets the pixel format of the bitmap image.
int get_Stride() const
Returns the stride width of the image in bytes.
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
@ Bitmap
Defines color adjustment information for Bitmap objects.
PixelFormat
Specifies the color data format of a pixel.
Definition: pixel_format.h:17
SharedPtr< BitmapData > BitmapDataPtr
An alias for a shared pointer to an instance of BitmapData class.
Definition: bitmap_data.h:15
Definition: db_command.h:9