Uses of Class
processing.core.PImage
-
Packages that use PImage Package Description processing.core processing.opengl -
-
Uses of PImage in processing.core
Subclasses of PImage in processing.core Modifier and Type Class Description classPGraphics( begin auto-generated from PGraphics.xml ) Main graphics and rendering context, as well as the base API implementation for processing "core".Fields in processing.core declared as PImage Modifier and Type Field Description PImagePFont.Glyph. imageprotected PImagePShape. imageTexture or image data associated with this shape.PImagePGraphics. textureImageCurrent image being used as a textureFields in processing.core with type parameters of type PImage Modifier and Type Field Description protected WeakHashMap<PImage,Object>PGraphics. cacheMapStorage for renderer-specific image data.Methods in processing.core that return PImage Modifier and Type Method Description PImagePApplet. copy()PImagePImage. copy()PImagePApplet. createImage(int w, int h, int format)( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images).PImagePApplet. get()Returns a copy of this PImage.PImagePApplet. get(int x, int y, int w, int h)PImagePImage. get()Returns a copy of this PImage.PImagePImage. get(int x, int y, int w, int h)PImagePGraphics.AsyncImageSaver. getAvailableTarget(int requestedWidth, int requestedHeight, int format)After taking a target, you must call saveTargetAsync() or returnUnusedTarget(), otherwise one thread won't be able to runPImagePApplet. loadImage(String filename)( begin auto-generated from loadImage.xml ) Loads an image into a variable of type PImage.PImagePApplet. loadImage(String filename, String extension)protected PImagePApplet. loadImageIO(String filename)Use Java 1.4 ImageIO methods to load an image.protected PImagePApplet. loadImageTGA(String filename)Targa image loader for RLE-compressed TGA files.protected static PImagePImage. loadTIFF(byte[] tiff)PImagePApplet. requestImage(String filename)PImagePApplet. requestImage(String filename, String extension)( begin auto-generated from requestImage.xml ) This function load images on a separate thread so that your sketch does not freeze while images load during setup().Methods in processing.core with parameters of type PImage Modifier and Type Method Description voidPApplet. background(PImage image)Takes an RGB or ARGB image and sets it as the background.voidPGraphics. background(PImage image)Takes an RGB or ARGB image and sets it as the background.protected voidPGraphics. backgroundImpl(PImage image)Actually set the background image.voidPApplet. blend(PImage src, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int mode)( begin auto-generated from PImage_blend.xml ) Blends a region of pixels into the image specified by the img parameter.voidPImage. blend(PImage src, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int mode)( begin auto-generated from PImage_blend.xml ) Blends a region of pixels into the image specified by the img parameter.voidPApplet. copy(PImage src, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)voidPImage. copy(PImage src, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)voidPApplet. cursor(PImage img)Replace the cursor with the specified PImage.voidPApplet. cursor(PImage img, int x, int y)( begin auto-generated from cursor.xml ) Sets the cursor to a predefined symbol, an image, or makes it visible if already hidden.ObjectPGraphics. getCache(PImage image)Get cache storage data for the specified renderer.protected voidPImage. getImpl(int sourceX, int sourceY, int sourceWidth, int sourceHeight, PImage target, int targetX, int targetY)Internal function to actually handle getting a block of pixels that has already been properly cropped to a valid region.voidPApplet. image(PImage img, float a, float b)( begin auto-generated from image.xml ) Displays images to the screen.voidPApplet. image(PImage img, float a, float b, float c, float d)voidPApplet. image(PImage img, float a, float b, float c, float d, int u1, int v1, int u2, int v2)Draw an image(), also specifying u/v coordinates.voidPGraphics. image(PImage img, float a, float b)( begin auto-generated from image.xml ) Displays images to the screen.voidPGraphics. image(PImage img, float a, float b, float c, float d)voidPGraphics. image(PImage img, float a, float b, float c, float d, int u1, int v1, int u2, int v2)Draw an image(), also specifying u/v coordinates.protected voidPGraphics. imageImpl(PImage img, float x1, float y1, float x2, float y2, int u1, int v1, int u2, int v2)Expects x1, y1, x2, y2 coordinates where (x2 >= x1) and (y2 >= y1).voidPApplet. mask(PImage img)( begin auto-generated from PImage_mask.xml ) Masks part of an image from displaying by loading another image and using it as an alpha channel.voidPImage. mask(PImage img)( begin auto-generated from PImage_mask.xml ) Masks part of an image from displaying by loading another image and using it as an alpha channel.protected voidPGraphics. processImageBeforeAsyncSave(PImage image)voidPGraphics. removeCache(PImage image)Remove information associated with this renderer from the cache, if any.voidPGraphics.AsyncImageSaver. returnUnusedTarget(PImage target)voidPGraphics.AsyncImageSaver. saveTargetAsync(PGraphics renderer, PImage target, File file)voidPApplet. set(int x, int y, PImage img)AdvancedvoidPImage. set(int x, int y, PImage img)AdvancedvoidPGraphics. setCache(PImage image, Object storage)Store data of some kind for the renderer that requires extra metadata of some kind.voidPSurface. setCursor(PImage image, int hotspotX, int hotspotY)voidPSurfaceNone. setCursor(PImage image, int hotspotX, int hotspotY)voidPSurface. setIcon(PImage icon)voidPSurfaceNone. setIcon(PImage image)protected voidPImage. setImpl(PImage sourceImage, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int targetX, int targetY)Internal function to actually handle setting a block of pixels that has already been properly cropped from the image to a valid region.voidPShape. setTexture(PImage tex)protected voidPGraphics. textCharModelImpl(PImage glyph, float x1, float y1, float x2, float y2, int u2, int v2)voidPApplet. texture(PImage image)( begin auto-generated from texture.xml ) Sets a texture to be applied to vertex points.voidPGraphics. texture(PImage image)( begin auto-generated from texture.xml ) Sets a texture to be applied to vertex points.voidPShape. texture(PImage tex) -
Uses of PImage in processing.opengl
Subclasses of PImage in processing.opengl Modifier and Type Class Description classPGraphics2DclassPGraphics3DclassPGraphicsOpenGLOpenGL renderer.Fields in processing.opengl declared as PImage Modifier and Type Field Description protected PImagePGraphicsOpenGL. filterImagePImage that wraps filterTexture.Fields in processing.opengl with type parameters of type PImage Modifier and Type Field Description protected HashSet<PImage>PShapeOpenGL. texturesMethods in processing.opengl that return PImage Modifier and Type Method Description protected PImagePGraphicsOpenGL. wrapTexture(Texture tex)Methods in processing.opengl with parameters of type PImage Modifier and Type Method Description protected TexturePGraphicsOpenGL. addTexture(PImage img)This utility method creates a texture for the provided image, and adds it to the metadata cache of the image.protected TexturePGraphicsOpenGL. addTexture(PImage img, Texture.Parameters params)protected voidPShapeOpenGL. addTexture(PImage tex)protected voidPGraphicsOpenGL. backgroundImpl(PImage image)voidPGraphicsOpenGL. copy(PImage src, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)ObjectPGraphicsOpenGL. getCache(PImage image)protected voidPGraphicsOpenGL. getImpl(int sourceX, int sourceY, int sourceWidth, int sourceHeight, PImage target, int targetX, int targetY)TexturePGraphicsOpenGL. getTexture(PImage img)Not an approved function, this will change or be removed in the future.protected booleanPShapeOpenGL. hasTexture(PImage tex)protected ObjectPGraphicsOpenGL. initCache(PImage img)voidPGraphicsOpenGL. mask(PImage alpha)protected voidPGraphicsOpenGL. processImageBeforeAsyncSave(PImage image)protected voidPShapeOpenGL. rawPolys(PGraphicsOpenGL g, PImage textureImage)voidPGraphicsOpenGL. removeCache(PImage image)protected voidPShapeOpenGL. removeTexture(PImage tex, PShapeOpenGL caller)protected voidPShapeOpenGL. render(PGraphicsOpenGL g, PImage texture)protected voidPShapeOpenGL. renderPolys(PGraphicsOpenGL g, PImage textureImage)voidPShader. set(String name, PImage tex)voidPGraphicsOpenGL. setCache(PImage image, Object storage)protected voidPGraphicsOpenGL. setImpl(PImage sourceImage, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int targetX, int targetY)voidPShapeOpenGL. setTexture(PImage tex)protected voidPShapeOpenGL. setTextureImpl(PImage tex)protected voidPGraphicsOpenGL. updateTexture(PImage img, Texture tex)
-