RtfImage
OfficeIMO.Rtf
RTF picture payload preserved without external imaging dependencies.
Inheritance
- object
- RtfImage
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
- Method RtfDocument.AddImage
- Method RtfDocument.InsertImage
- Property RtfObject.ResultImage
- Method RtfParagraph.AddImage
- Method RtfSection.AddImage
Accepted by parameters 1
Constructors
public RtfImage(RtfImageFormat format, byte[] data) #Creates an image block.
Parameters
- format OfficeIMO.Rtf.RtfImageFormat
- data byte[]
Methods
public RtfImageLayout ResolveLayout(double? fallbackWidthTwips = null, double? fallbackHeightTwips = null) #Resolves the picture's unscaled and visible sizes in twips. Pixel sizes use 96 DPI when no goal size is supplied.
Parameters
- fallbackWidthTwips double? = null
- fallbackHeightTwips double? = null
Returns
RtfImageLayoutInherited Methods
Properties
public long PayloadLength { get; } #Available decoded byte length without materializing a deferred source payload.
public int? ScaleXPercent { get; set; } #Horizontal picture scale as a percentage. An omitted value means 100.
public int? ScaleYPercent { get; set; } #Vertical picture scale as a percentage. An omitted value means 100.
public int? CropLeftTwips { get; set; } #Unscaled twips cropped from the left edge. Negative values add space.
public int? CropTopTwips { get; set; } #Unscaled twips cropped from the top edge. Negative values add space.
public int? CropRightTwips { get; set; } #Unscaled twips cropped from the right edge. Negative values add space.
public int? CropBottomTwips { get; set; } #Unscaled twips cropped from the bottom edge. Negative values add space.