Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/ImageBuffer.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4299:3f85db78c441 | 4300:b30a8de92ad9 |
---|---|
52 ImageBuffer(PixelFormat format, | 52 ImageBuffer(PixelFormat format, |
53 unsigned int width, | 53 unsigned int width, |
54 unsigned int height, | 54 unsigned int height, |
55 bool forceMinimalPitch); | 55 bool forceMinimalPitch); |
56 | 56 |
57 ImageBuffer() | 57 ImageBuffer(); |
58 { | |
59 Initialize(); | |
60 } | |
61 | 58 |
62 ~ImageBuffer() | 59 ~ImageBuffer(); |
63 { | |
64 Deallocate(); | |
65 } | |
66 | 60 |
67 PixelFormat GetFormat() const | 61 PixelFormat GetFormat() const; |
68 { | |
69 return format_; | |
70 } | |
71 | 62 |
72 void SetFormat(PixelFormat format); | 63 void SetFormat(PixelFormat format); |
73 | 64 |
74 unsigned int GetWidth() const | 65 unsigned int GetWidth() const; |
75 { | |
76 return width_; | |
77 } | |
78 | 66 |
79 void SetWidth(unsigned int width); | 67 void SetWidth(unsigned int width); |
80 | 68 |
81 unsigned int GetHeight() const | 69 unsigned int GetHeight() const; |
82 { | |
83 return height_; | |
84 } | |
85 | 70 |
86 void SetHeight(unsigned int height); | 71 void SetHeight(unsigned int height); |
87 | 72 |
88 unsigned int GetBytesPerPixel() const | 73 unsigned int GetBytesPerPixel() const; |
89 { | |
90 return ::Orthanc::GetBytesPerPixel(format_); | |
91 } | |
92 | 74 |
93 void GetReadOnlyAccessor(ImageAccessor& accessor); | 75 void GetReadOnlyAccessor(ImageAccessor& accessor); |
94 | 76 |
95 void GetWriteableAccessor(ImageAccessor& accessor); | 77 void GetWriteableAccessor(ImageAccessor& accessor); |
96 | 78 |
97 bool IsMinimalPitchForced() const | 79 bool IsMinimalPitchForced() const; |
98 { | |
99 return forceMinimalPitch_; | |
100 } | |
101 | 80 |
102 void AcquireOwnership(ImageBuffer& other); | 81 void AcquireOwnership(ImageBuffer& other); |
103 }; | 82 }; |
104 } | 83 } |