Java Code Examples for processing.core.PImage#getNative()
The following examples show how to use
processing.core.PImage#getNative() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GifRender2.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 30 ) { encoder.finish(); P.println("gif render done!"); } }
Example 2
Source File: GifRenderEllo003ZoomInBW.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 55 ) { if(Config.getBoolean("rendering_gif", false) == true) encoder.finish(); P.println("gif render done!"); } }
Example 3
Source File: GifRenderEllo001GridScroll.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 100 ) { encoder.finish(); P.println("gif render done!"); } }
Example 4
Source File: GifRender3.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 41 ) { encoder.finish(); P.println("gif render done!"); } }
Example 5
Source File: GifRender4.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 60 ) { encoder.finish(); P.println("gif render done!"); } }
Example 6
Source File: GifRender.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 40 ) { encoder.finish(); P.println("gif render done!"); } }
Example 7
Source File: GifRender5.java From haxademic with MIT License | 5 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); if( p.frameCount == 30 ) { encoder.finish(); P.println("gif render done!"); } }
Example 8
Source File: GifRenderer.java From haxademic with MIT License | 5 votes |
public void renderGifFrame(PGraphics pg) { if(encoder == null) return; // no-op if we're starting after frameCount == 1 _framesRendered++; P.println("== rendering gif frame: "+_framesRendered+" =="); PImage screenshot = pg.get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); }
Example 9
Source File: ImageUtil.java From haxademic with MIT License | 5 votes |
public static BufferedImage pImageToBuffered( PImage pimg ) { return (BufferedImage) pimg.getNative(); // BufferedImage dest = new BufferedImage( pimg.width, pimg.height, BufferedImage.TYPE_INT_ARGB ); // Graphics2D g2 = dest.createGraphics(); // g2.drawImage( pimg.getImage(), 0, 0, null ); // g2.finalize(); // g2.dispose(); // return dest; }
Example 10
Source File: GifRenderEllo006SpinTunnel.java From haxademic with MIT License | 4 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); }
Example 11
Source File: GifRenderEllo005RollAcross.java From haxademic with MIT License | 4 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); }
Example 12
Source File: GifRenderEllo008VertexPointsTrain.java From haxademic with MIT License | 4 votes |
public void renderGifFrame() { PImage screenshot = get(); BufferedImage newFrame = (BufferedImage) screenshot.getNative(); encoder.addFrame(newFrame); }