//------------------------------------ void ofImage::resize(int newWidth, int newHeight){ resizePixels(myPixels, newWidth, newHeight); if (bUseTexture == true){ tex.clear(); tex.allocate(myPixels.width, myPixels.height, myPixels.glDataType); } update(); }
//------------------------------------ void ofImage::resize(int newWidth, int newHeight){ resizePixels(pixels, newWidth, newHeight); if (bUseTexture == true){ tex.clear(); tex.allocate(pixels.getWidth(), pixels.getHeight(), pixels.getGlDataType()); } update(); }
void ofImage_<PixelType>::resize(int newWidth, int newHeight){ if(newWidth == width && newHeight == height) return; resizePixels(pixels, newWidth, newHeight); if (bUseTexture){ tex.clear(); tex.allocate(pixels.getWidth(), pixels.getHeight(), ofGetGlInternalFormat(pixels)); } update(); }
void ofImage_<PixelType>::resize(int newWidth, int newHeight){ if(newWidth == width && newHeight == height) return; resizePixels(pixels, newWidth, newHeight); update(); }