Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfImage

Namespace OfficeIMO.Rtf
Assembly OfficeIMO.Rtf
Implements
IRtfCloneable IRtfBlock IRtfInline
Modifiers sealed

RTF picture payload preserved without external imaging dependencies.

Inheritance

  • Object
  • RtfImage

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public RtfImage(RtfImageFormat format, Byte[] data) #

Creates an image block.

Parameters

format OfficeIMO.Rtf.RtfImageFormat requiredposition: 0
data System.Byte[] requiredposition: 1

Methods

public RtfImageLayout ResolveLayout(Nullable<Double> fallbackWidthTwips = null, Nullable<Double> fallbackHeightTwips = null) #
Returns: RtfImageLayout

Resolves the picture's unscaled and visible sizes in twips. Pixel sizes use 96 DPI when no goal size is supplied.

Parameters

fallbackWidthTwips System.Nullable{System.Double} = null optionalposition: 0
fallbackHeightTwips System.Nullable{System.Double} = null optionalposition: 1

Properties

public RtfImageFormat Format { get; set; } #

Image format.

public Byte[] Data { get; set; } #

Raw image bytes.

public Nullable<Int32> SourceWidth { get; set; } #

Original width in pixels when present.

public Nullable<Int32> SourceHeight { get; set; } #

Original height in pixels when present.

public Nullable<Int32> DesiredWidthTwips { get; set; } #

Desired width in twips when present.

public Nullable<Int32> DesiredHeightTwips { get; set; } #

Desired height in twips when present.

public Nullable<Int32> ScaleXPercent { get; set; } #

Horizontal picture scale as a percentage. An omitted value means 100.

public Nullable<Int32> ScaleYPercent { get; set; } #

Vertical picture scale as a percentage. An omitted value means 100.

public Nullable<Int32> CropLeftTwips { get; set; } #

Unscaled twips cropped from the left edge. Negative values add space.

public Nullable<Int32> CropTopTwips { get; set; } #

Unscaled twips cropped from the top edge. Negative values add space.

public Nullable<Int32> CropRightTwips { get; set; } #

Unscaled twips cropped from the right edge. Negative values add space.

public Nullable<Int32> CropBottomTwips { get; set; } #

Unscaled twips cropped from the bottom edge. Negative values add space.

public String Description { get; set; } #

Alternative text or description.