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