JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.texture.spi.SGIImage Class Reference
Collaboration diagram for com.jogamp.opengl.util.texture.spi.SGIImage:

Classes

class  Header
 

Public Member Functions

void write (final String filename, final boolean flipVertically) throws IOException
 Writes this SGIImage to the specified file name. More...
 
void write (final File file, final boolean flipVertically) throws IOException
 Writes this SGIImage to the specified file. More...
 
int getWidth ()
 Returns the width of the image. More...
 
int getHeight ()
 Returns the height of the image. More...
 
int getFormat ()
 Returns the OpenGL format for this texture; e.g. More...
 
byte[] getData ()
 Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. More...
 
String toString ()
 

Static Public Member Functions

static SGIImage read (final String filename) throws IOException
 Reads an SGI image from the specified file. More...
 
static SGIImage read (final InputStream in) throws IOException
 Reads an SGI image from the specified InputStream. More...
 
static SGIImage createFromData (final int width, final int height, final boolean hasAlpha, final byte[] data)
 Creates an SGIImage from the specified data in either RGB or RGBA format. More...
 

Detailed Description

Reads and writes SGI RGB/RGBA images.

Written from Paul Bourke's adaptation of the SGI specification.

Definition at line 57 of file SGIImage.java.

Member Function Documentation

◆ createFromData()

static SGIImage com.jogamp.opengl.util.texture.spi.SGIImage.createFromData ( final int  width,
final int  height,
final boolean  hasAlpha,
final byte[]  data 
)
static

Creates an SGIImage from the specified data in either RGB or RGBA format.

Definition at line 181 of file SGIImage.java.

◆ getData()

byte[] com.jogamp.opengl.util.texture.spi.SGIImage.getData ( )

Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D.

Definition at line 211 of file SGIImage.java.

◆ getFormat()

int com.jogamp.opengl.util.texture.spi.SGIImage.getFormat ( )

Returns the OpenGL format for this texture; e.g.

GL.GL_RGB or GL.GL_RGBA.

Definition at line 205 of file SGIImage.java.

◆ getHeight()

int com.jogamp.opengl.util.texture.spi.SGIImage.getHeight ( )

Returns the height of the image.

Definition at line 200 of file SGIImage.java.

◆ getWidth()

int com.jogamp.opengl.util.texture.spi.SGIImage.getWidth ( )

Returns the width of the image.

Definition at line 195 of file SGIImage.java.

◆ read() [1/2]

static SGIImage com.jogamp.opengl.util.texture.spi.SGIImage.read ( final InputStream  in) throws IOException
static

Reads an SGI image from the specified InputStream.

Definition at line 156 of file SGIImage.java.

◆ read() [2/2]

static SGIImage com.jogamp.opengl.util.texture.spi.SGIImage.read ( final String  filename) throws IOException
static

Reads an SGI image from the specified file.

Definition at line 151 of file SGIImage.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

String com.jogamp.opengl.util.texture.spi.SGIImage.toString ( )

Definition at line 214 of file SGIImage.java.

◆ write() [1/2]

void com.jogamp.opengl.util.texture.spi.SGIImage.write ( final File  file,
final boolean  flipVertically 
) throws IOException

Writes this SGIImage to the specified file.

If flipVertically is set, outputs the scanlines from top to bottom rather than the default bottom to top order.

Definition at line 175 of file SGIImage.java.

◆ write() [2/2]

void com.jogamp.opengl.util.texture.spi.SGIImage.write ( final String  filename,
final boolean  flipVertically 
) throws IOException

Writes this SGIImage to the specified file name.

If flipVertically is set, outputs the scanlines from top to bottom rather than the default bottom to top order.

Definition at line 168 of file SGIImage.java.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: