Record Class StyleImage
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.style.StyleImage
public record StyleImage(PremultipliedRgba8Image image, float pixelRatio, boolean sdf)
extends Record
Copied runtime style image pixels with style image metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionStyleImage(PremultipliedRgba8Image image, float pixelRatio, boolean sdf) Creates an instance of aStyleImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.floatReturns the value of thepixelRatiorecord component.booleansdf()Returns the value of thesdfrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StyleImage
Creates an instance of aStyleImagerecord class.- Parameters:
image- the value for theimagerecord componentpixelRatio- the value for thepixelRatiorecord componentsdf- the value for thesdfrecord component
-
-
Method Details
-
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. -
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
pixelRatio
public float pixelRatio()Returns the value of thepixelRatiorecord component.- Returns:
- the value of the
pixelRatiorecord component
-
sdf
public boolean sdf()Returns the value of thesdfrecord component.- Returns:
- the value of the
sdfrecord component
-