Record Class PremultipliedRgba8Image
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.render.PremultipliedRgba8Image
public record PremultipliedRgba8Image(int width, int height, int stride, byte[] pixels)
extends Record
Caller-owned premultiplied RGBA8 pixels.
-
Constructor Summary
ConstructorsConstructorDescriptionPremultipliedRgba8Image(int width, int height, int stride, byte[] pixels) Creates an instance of aPremultipliedRgba8Imagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.byte[]pixels()Returns the value of thepixelsrecord component.intstride()Returns the value of thestriderecord component.toString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
PremultipliedRgba8Image
public PremultipliedRgba8Image(int width, int height, int stride, byte[] pixels) Creates an instance of aPremultipliedRgba8Imagerecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentstride- the value for thestriderecord componentpixels- the value for thepixelsrecord component
-
-
Method Details
-
pixels
public byte[] pixels()Returns the value of thepixelsrecord component.- Returns:
- the value of the
pixelsrecord component
-
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. -
hashCode
-
toString
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-