Class OdfImageFrameInfo
Represents summary information for an image frame in an ODI image document. 表示 ODI 影像文件中一個影像框架的摘要資訊。
public sealed class OdfImageFrameInfo
- Inheritance
-
OdfImageFrameInfo
- Inherited Members
Constructors
OdfImageFrameInfo(string?, string?, string?, string?, string?, long?, string?, string?, string?, string?, double?, OdfImageCropInfo?)
Represents summary information for an image frame in an ODI image document. 表示 ODI 影像文件中一個影像框架的摘要資訊。
public OdfImageFrameInfo(string? name, string? title, string? description, string? imageHref, string? mediaType, long? size, string? x, string? y, string? width, string? height, double? rotationDegrees = null, OdfImageCropInfo? crop = null)
Parameters
namestringThe frame name (
draw:name). / 框架名稱(draw:name)。titlestringThe frame title. / 框架標題。
descriptionstringThe frame description. / 框架描述。
imageHrefstringThe image resource reference path (
xlink:href). / 影像資源參照路徑(xlink:href)。mediaTypestringThe image media type. / 影像媒體類型。
sizelong?The image byte size. / 影像位元組大小。
xstringThe raw X-axis coordinate text. / X 軸座標原文。
ystringThe raw Y-axis coordinate text. / Y 軸座標原文。
widthstringThe raw width text. / 寬度原文。
heightstringThe raw height text. / 高度原文。
rotationDegreesdouble?The rotation angle in degrees. / 旋轉角度(度)。
cropOdfImageCropInfoThe crop bounds. / 裁切邊界。
Properties
Crop
Gets the crop bounds. 取得裁切邊界。
public OdfImageCropInfo? Crop { get; }
Property Value
Description
Gets the frame description. 取得框架描述。
public string? Description { get; }
Property Value
Height
Gets the raw height text. 取得高度原文。
public string? Height { get; }
Property Value
ImageHref
Gets the image resource reference path. 取得影像資源參照路徑。
public string? ImageHref { get; }
Property Value
MediaType
Gets the image media type. 取得影像媒體類型。
public string? MediaType { get; }
Property Value
Name
Gets the frame name. 取得框架名稱。
public string? Name { get; }
Property Value
RotationDegrees
Gets the rotation angle in degrees. 取得旋轉角度(度)。
public double? RotationDegrees { get; }
Property Value
Size
Gets the image byte size. 取得影像位元組大小。
public long? Size { get; }
Property Value
- long?
Title
Gets the frame title. 取得框架標題。
public string? Title { get; }
Property Value
Width
Gets the raw width text. 取得寬度原文。
public string? Width { get; }
Property Value
X
Gets the raw X-axis coordinate text. 取得 X 軸座標原文。
public string? X { get; }
Property Value
Y
Gets the raw Y-axis coordinate text. 取得 Y 軸座標原文。
public string? Y { get; }
Property Value
Methods
TryGetHeight(out OdfLength)
public bool TryGetHeight(out OdfLength length)
Parameters
lengthOdfLengthThe length value returned on successful parsing. / 解析成功時傳回的長度值。
Returns
TryGetWidth(out OdfLength)
public bool TryGetWidth(out OdfLength length)
Parameters
lengthOdfLengthThe length value returned on successful parsing. / 解析成功時傳回的長度值。
Returns
TryGetX(out OdfLength)
public bool TryGetX(out OdfLength length)
Parameters
lengthOdfLengthThe length value returned on successful parsing. / 解析成功時傳回的長度值。
Returns
TryGetY(out OdfLength)
public bool TryGetY(out OdfLength length)
Parameters
lengthOdfLengthThe length value returned on successful parsing. / 解析成功時傳回的長度值。