9 #include "mgGL/Pixel.h"
11 #include <GdiPlusColorMatrix.h>
12 #include <gdipluseffects.h>
30 MGImage():m_width(0), m_height(0),m_image(0){;};
48 MGImage(Gdiplus::Bitmap& bitmap);
52 Gdiplus::Bitmap& bitmap,
61 Gdiplus::Bitmap& bitmap,
71 Gdiplus::Bitmap& bitmap,
72 const Gdiplus::BrightnessContrast& bc,
87 int width()
const{
return m_width;};
91 MGPixel& operator()(
int i,
int j);
92 const MGPixel& operator()(
int i,
int j)
const;
96 bool is_zero_alpha(
int i,
int j)
const;
119 const std::vector<int>& ranges
124 void fill_color_NoChangeAlpha(
129 void fill_color_NoChangeAlpha(
146 bool includeNonZeroAlpha(
int i,
int j)
const;
155 const std::vector<int>& ranges
171 void resize_with_fill_color(
178 void resize_and_add_zero_border(
int nwidth2,
int nheight2);
181 int m_width, m_height;
186 Gdiplus::Bitmap& bitmap,
188 int width,
int height,
MGPixel * image()
Definition: Image.h:89
void MGImageCompute_2spower(int width, int height, int &width2, int &height2)
Compute 2's power of width and height.
MGImage defines bit map image data.
Definition: Image.h:26
int height() const
Definition: Image.h:88
const MGPixel * image() const
Definition: Image.h:90
int width() const
Definition: Image.h:87
MGImage()
Definition: Image.h:30
Define MGPixel Class of (R,G,B,A) pixel data.
Definition: Pixel.h:18