Table of Contents

Class OdfImageFrameInfo

Namespace
OdfKit.Image
Assembly
OdfKit.dll

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

name string

The frame name (draw:name). / 框架名稱(draw:name)。

title string

The frame title. / 框架標題。

description string

The frame description. / 框架描述。

imageHref string

The image resource reference path (xlink:href). / 影像資源參照路徑(xlink:href)。

mediaType string

The image media type. / 影像媒體類型。

size long?

The image byte size. / 影像位元組大小。

x string

The raw X-axis coordinate text. / X 軸座標原文。

y string

The raw Y-axis coordinate text. / Y 軸座標原文。

width string

The raw width text. / 寬度原文。

height string

The raw height text. / 高度原文。

rotationDegrees double?

The rotation angle in degrees. / 旋轉角度(度)。

crop OdfImageCropInfo

The crop bounds. / 裁切邊界。

Properties

Crop

Gets the crop bounds. 取得裁切邊界。

public OdfImageCropInfo? Crop { get; }

Property Value

OdfImageCropInfo

Description

Gets the frame description. 取得框架描述。

public string? Description { get; }

Property Value

string

Height

Gets the raw height text. 取得高度原文。

public string? Height { get; }

Property Value

string

ImageHref

Gets the image resource reference path. 取得影像資源參照路徑。

public string? ImageHref { get; }

Property Value

string

MediaType

Gets the image media type. 取得影像媒體類型。

public string? MediaType { get; }

Property Value

string

Name

Gets the frame name. 取得框架名稱。

public string? Name { get; }

Property Value

string

RotationDegrees

Gets the rotation angle in degrees. 取得旋轉角度(度)。

public double? RotationDegrees { get; }

Property Value

double?

Size

Gets the image byte size. 取得影像位元組大小。

public long? Size { get; }

Property Value

long?

Title

Gets the frame title. 取得框架標題。

public string? Title { get; }

Property Value

string

Width

Gets the raw width text. 取得寬度原文。

public string? Width { get; }

Property Value

string

X

Gets the raw X-axis coordinate text. 取得 X 軸座標原文。

public string? X { get; }

Property Value

string

Y

Gets the raw Y-axis coordinate text. 取得 Y 軸座標原文。

public string? Y { get; }

Property Value

string

Methods

TryGetHeight(out OdfLength)

Attempts to parse Height as an OdfLength. 嘗試將 Height 解析為 OdfLength

public bool TryGetHeight(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetWidth(out OdfLength)

Attempts to parse Width as an OdfLength. 嘗試將 Width 解析為 OdfLength

public bool TryGetWidth(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetX(out OdfLength)

Attempts to parse X as an OdfLength. 嘗試將 X 解析為 OdfLength

public bool TryGetX(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetY(out OdfLength)

Attempts to parse Y as an OdfLength. 嘗試將 Y 解析為 OdfLength

public bool TryGetY(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true