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
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 Use SbRasterImage constructor with SoBufferObject instead.
|
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 Use SbRasterImage constructor with SoBufferObject instead.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Deprecated.
As of Open Inventor 9400 Use SbRasterImage.getBufferObject() instead.
|
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, getNativeResourceHandle
public SbRasterImage(SbVec2i32 size, SbRasterImage.Components components, SoBufferObject bufferObject)
public SbRasterImage()
@Deprecated public SbRasterImage(SbVec2i32 size, SbRasterImage.Components components, byte[] bytes)
SbRasterImage
constructor with SoBufferObject
instead. @Deprecated public SbRasterImage(SbVec2s size, SbRasterImage.Components components, byte[] bytes)
SbRasterImage
constructor with SoBufferObject
instead. public void setSize(SbVec2s size)
SbVec2s
). To specify a larger image size use the method setSize_i32.@Deprecated public byte[] getBuffer()
SbRasterImage.getBufferObject()
instead. public SbRasterImage.Components getComponents()
public SbRasterImage.CopyPolicies getCopyPolicy()
public void setComponents(SbRasterImage.Components comp)
public int getNumMipmaps()
public int getComponentsCount()
E.g: For an RGB image it returns 3 (R, G and B).
public SoBufferObject getBufferObject()
public int getComponentsSize()
E.g: For an RGB image containing byte data, the pixel size is 3 bytes.
public void setSizei32(SbVec2i32 size)
public void setBuffer(SoBufferObject bufferObject)
public SbVec2s getSize()
public boolean removeAlphaChannel()
public SbVec2i32 getSizei32()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com