width_ = 0;
height_ = 0;
pixcomp_ = RGB;
- pixprec_ = BYTE;
+ pixprec_ = BYTE;\r
+ _zoom_percentage_ = 100;
}
*(++p) = (unsigned char)0;
}
*/
+ Image& Image::_zoom_(const double percentage) {\r
+ _zoom_percentage_ = percentage;\r
+ targetarea_.resize(width_*(percentage/100.0), height_*(percentage/100.0));\r
+ return *this;\r
+ }
Image& Image::alpha(const double a)
{
for(int y=0; y<getHeight(); y++)