Table of Contents

Class ReportPageImage

Namespace
DocWright.Reporting.Pagination
Assembly
DocWright.Reporting.dll

An image on a page: where its pixels are drawn, and what clips them.

public sealed class ReportPageImage : ReportPageItem
Inheritance
ReportPageImage
Inherited Members

Remarks

Left, Top, Width and Height are the item's box — what the border and background are drawn on, and what a viewer hit-tests. ImageLeft, ImageTop, ImageWidth and ImageHeight are where the pixels go, which under Clip may be larger than the box.

An image whose source could not be resolved still appears here, with its box, its style and DocWright.Reporting.Data null: the box is part of the page whether or not there is anything to draw in it, and a diagnostic said why (DXP9401, DXP9402 or DXP9403).

Properties

ContentType

Gets the image's content type, such as image/png, or an empty string.

ImageHeight

Gets the height the pixels are drawn at.

ImageLeft

Gets the left edge of the drawn pixels, in twips from the page's left edge.

ImageTop

Gets the top edge of the drawn pixels, in twips from the page's top edge.

ImageWidth

Gets the width the pixels are drawn at.

Kind

Gets what kind of item this is.

Sizing

Gets how the image was fitted into its box.

Methods

GetData()

Gets the encoded image bytes, or null when the source did not resolve to any.