Esempio n. 1
0
 SurfacePtr Surface::getChannel(ColorChannel ch) const
 {
     SurfacePtr surf = new Surface(Format_A_8, m_width, m_height);
     getChannel(surf.ref(), ch);
     return surf;
 }
Esempio n. 2
0
 SurfacePtr Surface::getScaled(int dst_wi, int dst_hi, Filter filter) const
 {
     SurfacePtr surf = new img::Surface(img::Format_ARGB_8888, dst_wi, dst_hi);
     getScaled(surf.ref(), filter);
     return surf;
 }