Uses of Class
com.raylib.Image
Packages that use Image
-
Uses of Image in com.raylib
Methods in com.raylib that return ImageModifier and TypeMethodDescriptionstatic ImageImage.allocateArray(long elementCount) Allocate an array of Imagestatic ImageImage.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of ImageImage.data(MemorySegment value) Image raw dataImage.format(int value) Data format (PixelFormat type)static ImageRaylib.genImageCellular(int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic ImageRaylib.genImageCellular(Arena arena, int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic ImageRaylib.genImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImageRaylib.genImageChecked(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImageRaylib.genImageColor(int width, int height, Color color) Generate image: plain colorstatic ImageRaylib.genImageColor(Arena arena, int width, int height, Color color) Generate image: plain colorstatic ImageRaylib.genImageFontAtlas(Arena arena, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic ImageRaylib.genImageFontAtlas(MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic ImageRaylib.genImageGradientLinear(int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic ImageRaylib.genImageGradientLinear(Arena arena, int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic ImageRaylib.genImageGradientRadial(int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImageRaylib.genImageGradientRadial(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImageRaylib.genImageGradientSquare(int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic ImageRaylib.genImageGradientSquare(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic ImageRaylib.genImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic ImageRaylib.genImagePerlinNoise(Arena arena, int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic ImageRaylib.genImageText(int width, int height, String text) Generate image: grayscale image from text datastatic ImageRaylib.genImageText(Arena arena, int width, int height, String text) Generate image: grayscale image from text datastatic ImageRaylib.genImageWhiteNoise(int width, int height, float factor) Generate image: white noisestatic ImageRaylib.genImageWhiteNoise(Arena arena, int width, int height, float factor) Generate image: white noiseImage.getArrayElement(int index) static ImageRaylib.getClipboardImage()Get clipboard image contentstatic ImageRaylib.getClipboardImage(Arena arena) Get clipboard image contentGlyphInfo.getImage()Character image dataImage.height(int value) Image base heightGlyphInfo.image()Character image datastatic ImageCreate an image duplicate (useful for transformations)static ImageCreate an image duplicate (useful for transformations)static ImageRaylib.imageFromChannel(Image image, int selectedChannel) Create an image from a selected channel of another image (GRAYSCALE)static ImageRaylib.imageFromChannel(Arena arena, Image image, int selectedChannel) Create an image from a selected channel of another image (GRAYSCALE)static ImageRaylib.imageFromImage(Image image, Rectangle rec) Create an image from another image piecestatic ImageRaylib.imageFromImage(Arena arena, Image image, Rectangle rec) Create an image from another image piecestatic ImageCreate an image from text (default font)static ImageCreate an image from text (default font)static ImageRaylib.imageTextEx(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static ImageRaylib.imageTextEx(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static ImageLoad image from file into CPU memory (RAM)static ImageLoad image from file into CPU memory (RAM)static ImageRaylib.loadImageAnim(Arena arena, String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static ImageRaylib.loadImageAnim(String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static ImageRaylib.loadImageAnimFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize, IntBuffer frames) Load image sequence from memory bufferstatic ImageRaylib.loadImageAnimFromMemory(String fileType, ByteBuffer fileData, int dataSize, IntBuffer frames) Load image sequence from memory bufferstatic ImageRaylib.loadImageFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static ImageRaylib.loadImageFromMemory(String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static ImageRaylib.loadImageFromScreen()Load image from screen buffer and (screenshot)static ImageRaylib.loadImageFromScreen(Arena arena) Load image from screen buffer and (screenshot)static ImageRaylib.loadImageFromTexture(Texture texture) Load image from GPU texture datastatic ImageRaylib.loadImageFromTexture(Arena arena, Texture texture) Load image from GPU texture datastatic ImageRaylib.loadImageRaw(Arena arena, String fileName, int width, int height, int format, int headerSize) Load image from RAW file datastatic ImageRaylib.loadImageRaw(String fileName, int width, int height, int format, int headerSize) Load image from RAW file dataImage.mipmaps(int value) Mipmap levels, 1 by defaultImage.width(int value) Image base widthMethods in com.raylib with parameters of type ImageModifier and TypeMethodDescriptionstatic booleanRaylib.exportImage(Image image, String fileName) Export image data to file, returns true on successstatic booleanRaylib.exportImageAsCode(Image image, String fileName) Export image as code file defining an array of bytes, returns true on successstatic ByteBufferRaylib.exportImageToMemory(Image image, String fileType, IntBuffer fileSize) Export image to memory bufferstatic MeshRaylib.genMeshCubicmap(Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic MeshRaylib.genMeshCubicmap(Arena arena, Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic MeshRaylib.genMeshHeightmap(Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic MeshRaylib.genMeshHeightmap(Arena arena, Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic RectangleRaylib.getImageAlphaBorder(Image image, float threshold) Get image alpha border rectanglestatic RectangleRaylib.getImageAlphaBorder(Arena arena, Image image, float threshold) Get image alpha border rectanglestatic ColorRaylib.getImageColor(Image image, int x, int y) Get image pixel color at (x, y) positionstatic ColorRaylib.getImageColor(Arena arena, Image image, int x, int y) Get image pixel color at (x, y) positionCharacter image datastatic voidRaylib.imageAlphaClear(Image image, Color color, float threshold) Clear alpha channel to desired colorstatic voidRaylib.imageAlphaCrop(Image image, float threshold) Crop image depending on alpha valuestatic voidRaylib.imageAlphaMask(Image image, Image alphaMask) Apply alpha mask to imagestatic voidRaylib.imageAlphaPremultiply(Image image) Premultiply alpha channelstatic voidRaylib.imageBlurGaussian(Image image, int blurSize) Apply Gaussian blur using a box blur approximationstatic voidRaylib.imageClearBackground(Image dst, Color color) Clear image background with given colorstatic voidRaylib.imageColorBrightness(Image image, int brightness) Modify image color: brightness (-255 to 255)static voidRaylib.imageColorContrast(Image image, float contrast) Modify image color: contrast (-100 to 100)static voidRaylib.imageColorGrayscale(Image image) Modify image color: grayscalestatic voidRaylib.imageColorInvert(Image image) Modify image color: invertstatic voidRaylib.imageColorReplace(Image image, Color color, Color replace) Modify image color: replace colorstatic voidRaylib.imageColorTint(Image image, Color color) Modify image color: tintstatic ImageCreate an image duplicate (useful for transformations)static ImageCreate an image duplicate (useful for transformations)static voidCrop an image to a defined rectanglestatic voidRaylib.imageDither(Image image, int rBpp, int gBpp, int bBpp, int aBpp) Dither image data to 16bpp or lower (Floyd-Steinberg dithering)static voidDraw a source image within a destination image (tint applied to source)static voidRaylib.imageDrawCircle(Image dst, int centerX, int centerY, int radius, Color color) Draw a filled circle within an imagestatic voidRaylib.imageDrawCircleLines(Image dst, int centerX, int centerY, int radius, Color color) Draw circle outline within an imagestatic voidRaylib.imageDrawCircleLinesV(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static voidRaylib.imageDrawCircleV(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static voidRaylib.imageDrawLine(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) Draw line within an imagestatic voidRaylib.imageDrawLineEx(Image dst, Vector2 start, Vector2 end, int thick, Color color) Draw a line defining thickness within an imagestatic voidRaylib.imageDrawLineV(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static voidRaylib.imageDrawPixel(Image dst, int posX, int posY, Color color) Draw pixel within an imagestatic voidRaylib.imageDrawPixelV(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static voidRaylib.imageDrawRectangle(Image dst, int posX, int posY, int width, int height, Color color) Draw rectangle within an imagestatic voidRaylib.imageDrawRectangleLines(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic voidRaylib.imageDrawRectangleRec(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic voidRaylib.imageDrawRectangleV(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static voidRaylib.imageDrawText(Image dst, String text, int posX, int posY, int fontSize, Color color) Draw text (using default font) within an image (destination)static voidRaylib.imageDrawTextEx(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)static voidDraw triangle within an imagestatic voidRaylib.imageDrawTriangleEx(Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3) Draw triangle with interpolated colors within an imagestatic voidRaylib.imageDrawTriangleFan(Image dst, Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points within an image (first vertex is the center)static voidDraw triangle outline within an imagestatic voidRaylib.imageDrawTriangleStrip(Image dst, Vector2 points, int pointCount, Color color) Draw a triangle strip defined by points within an imagestatic voidRaylib.imageFlipHorizontal(Image image) Flip image horizontallystatic voidRaylib.imageFlipVertical(Image image) Flip image verticallystatic voidRaylib.imageFormat(Image image, int newFormat) Convert image data to desired formatstatic ImageRaylib.imageFromChannel(Image image, int selectedChannel) Create an image from a selected channel of another image (GRAYSCALE)static ImageRaylib.imageFromChannel(Arena arena, Image image, int selectedChannel) Create an image from a selected channel of another image (GRAYSCALE)static ImageRaylib.imageFromImage(Image image, Rectangle rec) Create an image from another image piecestatic ImageRaylib.imageFromImage(Arena arena, Image image, Rectangle rec) Create an image from another image piecestatic voidRaylib.imageKernelConvolution(Image image, MemorySegment kernel, int kernelSize) Apply custom square convolution kernel to imagestatic voidRaylib.imageMipmaps(Image image) Compute all mipmap levels for a provided imagestatic voidRaylib.imageResize(Image image, int newWidth, int newHeight) Resize image (Bicubic scaling algorithm)static voidRaylib.imageResizeCanvas(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) Resize canvas and fill with colorstatic voidRaylib.imageResizeNN(Image image, int newWidth, int newHeight) Resize image (Nearest-Neighbor scaling algorithm)static voidRaylib.imageRotate(Image image, int degrees) Rotate image by input angle in degrees (-359 to 359)static voidRaylib.imageRotateCCW(Image image) Rotate image counter-clockwise 90degstatic voidRaylib.imageRotateCW(Image image) Rotate image clockwise 90degstatic voidRaylib.imageToPOT(Image image, Color fill) Convert image to POT (power-of-two)static booleanRaylib.isImageValid(Image image) Check if an image is valid (data and parameters)static FontRaylib.loadFontFromImage(Image image, Color key, int firstChar) Load font from Image (XNA style)static FontRaylib.loadFontFromImage(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)static ColorRaylib.loadImageColors(Image image) Load color data from image as a Color array (RGBA - 32bit)static ColorRaylib.loadImagePalette(Image image, int maxPaletteSize, IntBuffer colorCount) Load colors palette from image as a Color array (RGBA - 32bit)static TextureRaylib.loadTextureCubemap(Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic TextureRaylib.loadTextureCubemap(Arena arena, Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic TextureRaylib.loadTextureFromImage(Image image) Load texture from image datastatic TextureRaylib.loadTextureFromImage(Arena arena, Image image) Load texture from image datavoidCharacter image datastatic voidRaylib.setWindowIcon(Image image) Set icon for window (single image, RGBA 32bit)static voidRaylib.setWindowIcons(Image images, int count) Set icon for window (multiple images, RGBA 32bit)static voidRaylib.unloadImage(Image image) Unload image from CPU memory (RAM)Constructors in com.raylib with parameters of type ImageModifierConstructorDescriptionConstruct with auto memory allocator and fields initialized as specifiedGlyphInfo(SegmentAllocator arena, int value, int offsetX, int offsetY, int advanceX, Image image) Construct with your own memory allocator and fields initialized as specified