svoid imageSurface_pixelated(ImageSurface imageSurface) { if (imageSurface == null) ret; imageSurface.setDoubleBuffered(true); // solve flickering when partially obscured imageSurface.noAlpha = true; imageSurface.interpolationMode = RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR; repaint(imageSurface); } svoid imageSurface_pixelated(ImageSurface imageSurface, bool pixelated) { if (pixelated) imageSurface_pixelated(imageSurface); else imageSurface_unpixelated(imageSurface); }