C# Class PdfRpt.ColumnsItemsTemplates.ByteArrayImageField

Displaying current cell's data as an Image. It's useful for displaying image records/blobs of a database.
Inheritance: IColumnItemsTemplate
Mostra file Open project: VahidN/PdfReport

Public Methods

Method Description
ByteArrayImageField ( ) : System

Displaying current cell's data as an Image.

ByteArrayImageField ( string defaultImageFilePath, bool fitImages, bool cacheImages = true ) : System

Displaying current cell's data as an Image.

CellRendered ( PdfPCell cell, Rectangle position, PdfContentByte canvases, PdfRpt.Core.Contracts.CellAttributes attributes ) : void

This method is called at the end of the cell's rendering.

RenderingCell ( PdfRpt.Core.Contracts.CellAttributes attributes ) : PdfPCell

Custom cell's content template as a PdfPCell

Private Methods

Method Description
getImage ( PdfRpt.Core.Contracts.CellAttributes attributes ) : Image

Method Details

ByteArrayImageField() public method

Displaying current cell's data as an Image.
public ByteArrayImageField ( ) : System
return System

ByteArrayImageField() public method

Displaying current cell's data as an Image.
public ByteArrayImageField ( string defaultImageFilePath, bool fitImages, bool cacheImages = true ) : System
defaultImageFilePath string Default image will be used in case of null images
fitImages bool Set fitImages to true to fit the image to the cell
cacheImages bool If true, the image bytes will be added to the PDF only once, not per each new instance. Therefore the result won't be a bloated PDF file. Choose this option if there are many similar images in your data source.
return System

CellRendered() public method

This method is called at the end of the cell's rendering.
public CellRendered ( PdfPCell cell, Rectangle position, PdfContentByte canvases, PdfRpt.Core.Contracts.CellAttributes attributes ) : void
cell iTextSharp.text.pdf.PdfPCell The current cell
position iTextSharp.text.Rectangle The coordinates of the cell
canvases iTextSharp.text.pdf.PdfContentByte An array of PdfContentByte to add text or graphics
attributes PdfRpt.Core.Contracts.CellAttributes Current cell's custom attributes
return void

RenderingCell() public method

Custom cell's content template as a PdfPCell
public RenderingCell ( PdfRpt.Core.Contracts.CellAttributes attributes ) : PdfPCell
attributes PdfRpt.Core.Contracts.CellAttributes
return iTextSharp.text.pdf.PdfPCell