public class SbRasterImage extends Inventor
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SbRasterImage.Components
Components type.
|
static class |
SbRasterImage.CopyPolicies
Copy policy.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
COPY
Deprecated.
Use
SbRasterImage.CopyPolicies.COPY instead. |
static int |
LUMINANCE
Deprecated.
Use
SbRasterImage.Components.LUMINANCE instead. |
static int |
LUMINANCE_TRANSPARENCY
Deprecated.
Use
SbRasterImage.Components.LUMINANCE_TRANSPARENCY instead. |
static int |
NO_COPY
Deprecated.
Use
SbRasterImage.CopyPolicies.NO_COPY instead. |
static int |
RGB
Deprecated.
Use
SbRasterImage.Components.RGB instead. |
static int |
RGB_TRANSPARENCY
Deprecated.
Use
SbRasterImage.Components.RGB_TRANSPARENCY instead. |
static int |
RGBE
Deprecated.
Use
SbRasterImage.Components.RGBE instead. |
static int |
UNKNOWN
Deprecated.
Use
SbRasterImage.Components.UNKNOWN instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbRasterImage()
Constructor that creates an empty image.
|
SbRasterImage(SbVec2i32 size,
SbRasterImage.Components components,
byte[] bytes)
Deprecated.
As of Open Inventor 9400 See documentation for more details
|
SbRasterImage(SbVec2i32 size,
SbRasterImage.Components components,
SoBufferObject bufferObject)
Constructor that initializes with an image.
|
SbRasterImage(SbVec2s size,
SbRasterImage.Components components,
byte[] bytes)
Deprecated.
As of Open Inventor 9400 See documentation for more details
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Deprecated.
As of Open Inventor 9400 See documentation for more details
|
SoBufferObject |
getBufferObject()
Returns the pixel buffer of the raster image.
|
SbRasterImage.Components |
getComponents()
Returns the number of components of each pixel as an enum.
|
int |
getComponentsCount()
Returns the number of components of each pixel.
|
int |
getComponentsSize()
Returns the size in bytes of each pixel in the image.
|
SbRasterImage.CopyPolicies |
getCopyPolicy()
Returns the current buffer copy policy.
|
int |
getNumMipmaps()
Returns the number of mipmaps contained by the buffer.
|
SbVec2s |
getSize()
Returns the raster image size in pixels.
|
SbVec2i32 |
getSizei32()
Returns the raster image size in pixels for large images.
|
boolean |
removeAlphaChannel()
Removes the Alpha channel from the current raster image.
|
void |
setBuffer(SoBufferObject bufferObject)
Sets the pixel buffer of the raster image.
|
void |
setComponents(SbRasterImage.Components comp)
Sets the number of components in each pixel of the raster image.
|
void |
setSize(SbVec2s size)
Sets the raster image size in pixels.
|
void |
setSizei32(SbVec2i32 size)
Sets the raster image size in pixels.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int UNKNOWN
SbRasterImage.Components.UNKNOWN
instead.@Deprecated public static final int LUMINANCE
SbRasterImage.Components.LUMINANCE
instead.@Deprecated public static final int LUMINANCE_TRANSPARENCY
SbRasterImage.Components.LUMINANCE_TRANSPARENCY
instead.@Deprecated public static final int RGB
SbRasterImage.Components.RGB
instead.@Deprecated public static final int RGB_TRANSPARENCY
SbRasterImage.Components.RGB_TRANSPARENCY
instead.@Deprecated public static final int RGBE
SbRasterImage.Components.RGBE
instead.@Deprecated public static final int COPY
SbRasterImage.CopyPolicies.COPY
instead.@Deprecated public static final int NO_COPY
SbRasterImage.CopyPolicies.NO_COPY
instead.public SbRasterImage()
public SbRasterImage(SbVec2i32 size, SbRasterImage.Components components, SoBufferObject bufferObject)
@Deprecated public SbRasterImage(SbVec2s size, SbRasterImage.Components components, byte[] bytes)
SbRasterImage
constructor with SoBufferObject
instead. @Deprecated public SbRasterImage(SbVec2i32 size, SbRasterImage.Components components, byte[] bytes)
SbRasterImage
constructor with SoBufferObject
instead. public int getNumMipmaps()
public void setSizei32(SbVec2i32 size)
public void setSize(SbVec2s size)
SbVec2s
). To specify a larger image size use the method setSize_i32.public SbRasterImage.CopyPolicies getCopyPolicy()
public int getComponentsSize()
E.g: For an RGB image containing byte data, the pixel size is 3 bytes.
public boolean removeAlphaChannel()
public SoBufferObject getBufferObject()
public void setBuffer(SoBufferObject bufferObject)
public int getComponentsCount()
E.g: For an RGB image it returns 3 (R, G and B).
public SbRasterImage.Components getComponents()
public SbVec2i32 getSizei32()
@Deprecated public byte[] getBuffer()
SbRasterImage.getBufferObject()
instead. public SbVec2s getSize()
public void setComponents(SbRasterImage.Components comp)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com