Record Class CLNImageInfo
java.lang.Object
java.lang.Record
com.io7m.calino.api.CLNImageInfo
- Record Components:
sizeX- The size, in pixels, of the image data on the X axissizeY- The size, in pixels, of the image data on the Y axissizeZ- The size, in pixels, of the image data on the Z axischannelsLayout- The layout of the channels in the image datachannelsType- The type of the channels in the image datacompressionMethod- The compression method used for the image datasuperCompressionMethod- The supercompression method used to encapsulate image datacoordinateSystem- The coordinate system orientationcolorSpace- The image color spaceflags- The image flagsdataByteOrder- The byte order of image data
public record CLNImageInfo(int sizeX, int sizeY, int sizeZ, CLNChannelsLayoutDescriptionType channelsLayout, CLNChannelsTypeDescriptionType channelsType, CLNCompressionMethodType compressionMethod, CLNSuperCompressionMethodType superCompressionMethod, CLNCoordinateSystem coordinateSystem, CLNColorSpaceType colorSpace, Set<CLNImageFlagType> flags, CLNByteOrder dataByteOrder)
extends Record
Information about an image.
This describes the size and format of image data included in a texture file.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNImageInfo(int sizeX, int sizeY, int sizeZ, CLNChannelsLayoutDescriptionType channelsLayout, CLNChannelsTypeDescriptionType channelsType, CLNCompressionMethodType compressionMethod, CLNSuperCompressionMethodType superCompressionMethod, CLNCoordinateSystem coordinateSystem, CLNColorSpaceType colorSpace, Set<CLNImageFlagType> flags, CLNByteOrder dataByteOrder) Information about an image. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechannelsLayoutrecord component.Returns the value of thechannelsTyperecord component.Returns the value of thecolorSpacerecord component.Returns the value of thecompressionMethodrecord component.Returns the value of thecoordinateSystemrecord component.Returns the value of thedataByteOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.showSize()intsizeX()Returns the value of thesizeXrecord component.intsizeY()Returns the value of thesizeYrecord component.intsizeZ()Returns the value of thesizeZrecord component.Returns the value of thesuperCompressionMethodrecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNImageInfo
public CLNImageInfo(int sizeX, int sizeY, int sizeZ, CLNChannelsLayoutDescriptionType channelsLayout, CLNChannelsTypeDescriptionType channelsType, CLNCompressionMethodType compressionMethod, CLNSuperCompressionMethodType superCompressionMethod, CLNCoordinateSystem coordinateSystem, CLNColorSpaceType colorSpace, Set<CLNImageFlagType> flags, CLNByteOrder dataByteOrder) Information about an image. This describes the size and format of image data included in a texture file.- Parameters:
sizeX- The size, in pixels, of the image data on the X axissizeY- The size, in pixels, of the image data on the Y axissizeZ- The size, in pixels, of the image data on the Z axischannelsLayout- The layout of the channels in the image datachannelsType- The type of the channels in the image datacompressionMethod- The compression method used for the image datasuperCompressionMethod- The supercompression method used to encapsulate image datacoordinateSystem- The coordinate system orientationcolorSpace- The image color spaceflags- The image flagsdataByteOrder- The byte order of image data
-
-
Method Details
-
texelBlockAlignment
public int texelBlockAlignment()- Returns:
- The required alignment of texel data
-
showSize
- Returns:
- A humanly-readable description of the image size
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sizeX
-
sizeY
-
sizeZ
-
channelsLayout
Returns the value of thechannelsLayoutrecord component.- Returns:
- the value of the
channelsLayoutrecord component
-
channelsType
Returns the value of thechannelsTyperecord component.- Returns:
- the value of the
channelsTyperecord component
-
compressionMethod
Returns the value of thecompressionMethodrecord component.- Returns:
- the value of the
compressionMethodrecord component
-
superCompressionMethod
Returns the value of thesuperCompressionMethodrecord component.- Returns:
- the value of the
superCompressionMethodrecord component
-
coordinateSystem
Returns the value of thecoordinateSystemrecord component.- Returns:
- the value of the
coordinateSystemrecord component
-
colorSpace
Returns the value of thecolorSpacerecord component.- Returns:
- the value of the
colorSpacerecord component
-
flags
-
dataByteOrder
Returns the value of thedataByteOrderrecord component.- Returns:
- the value of the
dataByteOrderrecord component
-