Class OdfMediaOptimizationRequest
Represents an optimization request for a single media item. 表示單一媒體項目的最佳化請求。
public sealed record OdfMediaOptimizationRequest : IEquatable<OdfMediaOptimizationRequest>
- Inheritance
-
OdfMediaOptimizationRequest
- Implements
- Inherited Members
Constructors
OdfMediaOptimizationRequest(string, string, byte[], string?, string?, double, int)
Represents an optimization request for a single media item. 表示單一媒體項目的最佳化請求。
public OdfMediaOptimizationRequest(string PackagePath, string MediaType, byte[] Bytes, string? Width, string? Height, double MaxDpi, int JpegQuality)
Parameters
PackagePathstringThe media's path within the ODF package. / 媒體在 ODF 封裝中的路徑。
MediaTypestringThe current media type. / 目前媒體類型。
Bytesbyte[]The current media content. / 目前媒體內容。
WidthstringThe picture frame width. / 圖片框架寬度。
HeightstringThe picture frame height. / 圖片框架高度。
MaxDpidoubleThe target maximum DPI. / 目標最大 DPI。
JpegQualityintThe JPEG output quality, ranging from 1 to 100. / JPEG 輸出品質,範圍為 1 至 100。
Properties
Bytes
The current media content. / 目前媒體內容。
public byte[] Bytes { get; init; }
Property Value
- byte[]
Height
The picture frame height. / 圖片框架高度。
public string? Height { get; init; }
Property Value
JpegQuality
The JPEG output quality, ranging from 1 to 100. / JPEG 輸出品質,範圍為 1 至 100。
public int JpegQuality { get; init; }
Property Value
MaxDpi
The target maximum DPI. / 目標最大 DPI。
public double MaxDpi { get; init; }
Property Value
MediaType
The current media type. / 目前媒體類型。
public string MediaType { get; init; }
Property Value
PackagePath
The media's path within the ODF package. / 媒體在 ODF 封裝中的路徑。
public string PackagePath { get; init; }
Property Value
Width
The picture frame width. / 圖片框架寬度。
public string? Width { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out byte[], out string?, out string?, out double, out int)
public void Deconstruct(out string PackagePath, out string MediaType, out byte[] Bytes, out string? Width, out string? Height, out double MaxDpi, out int JpegQuality)
Parameters
PackagePathstringMediaTypestringBytesbyte[]WidthstringHeightstringMaxDpidoubleJpegQualityint
Equals(OdfMediaOptimizationRequest?)
public bool Equals(OdfMediaOptimizationRequest? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OdfMediaOptimizationRequest?, OdfMediaOptimizationRequest?)
public static bool operator ==(OdfMediaOptimizationRequest? left, OdfMediaOptimizationRequest? right)
Parameters
Returns
operator !=(OdfMediaOptimizationRequest?, OdfMediaOptimizationRequest?)
public static bool operator !=(OdfMediaOptimizationRequest? left, OdfMediaOptimizationRequest? right)