Record Class WebpHeader
java.lang.Object
java.lang.Record
cloud.opencode.base.image.codec.webp.WebpHeader
- Record Components:
width- image width in pixels (positive) | 图像宽度(像素,正整数)height- image height in pixels (positive) | 图像高度(像素,正整数)
WebP header information returned by
WebpCodec.readHeader(byte[]).
WebpCodec.readHeader(byte[]) 返回的 WebP 头信息。
Carries the canvas dimensions parsed from a WebP byte stream without decoding pixels.
携带从 WebP 字节流解析得到的画布尺寸,不执行像素解码。
Security | 安全性:
- Thread-safe: Yes - record is immutable. - 线程安全: 是 - record 不可变。
- Since:
- JDK 25, opencode-base-image-codec V1.0.4
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebpHeader(int width, int height) Creates an instance of aWebpHeaderrecord 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.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
WebpHeader
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
width
-
height
-