PrintImage prints an image, specifing margins, vertical position, horizonal position and size.
Call PrintImage inside a PrintBegin() and PrintEnd() block (static members of IEImage class).
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public void PrintImage( int imageIndex, double marginLeft, double marginTop, double marginRight, double marginBottom, IEImage..::..PrintVerticalPos verticalPos, IEImage..::..PrintHorizontalPos horizontalPos, IEImage..::..PrintSize size, double specWidth, double specHeight, double gammaCorrection )
Public Sub PrintImage ( _ imageIndex As Integer, _ marginLeft As Double, _ marginTop As Double, _ marginRight As Double, _ marginBottom As Double, _ verticalPos As IEImage..::..PrintVerticalPos, _ horizontalPos As IEImage..::..PrintHorizontalPos, _ size As IEImage..::..PrintSize, _ specWidth As Double, _ specHeight As Double, _ gammaCorrection As Double _ )
public: void PrintImage( int imageIndex, double marginLeft, double marginTop, double marginRight, double marginBottom, IEImage..::..PrintVerticalPos verticalPos, IEImage..::..PrintHorizontalPos horizontalPos, IEImage..::..PrintSize size, double specWidth, double specHeight, double gammaCorrection )
Parameters
- imageIndex
- Int32
the index of image to print.
- marginLeft
- Double
the left page margin in inches. Specifing zero no margin are used.
- marginTop
- Double
the top page margin in inches. Specifing zero no margin are used.
- marginRight
- Double
the right page margin in inches. Specifing zero no margin are used.
- marginBottom
- Double
the bottom page margin in inches. Specifing zero no margin are used.
- verticalPos
- IEImage..::..PrintVerticalPos
determines how the image vertically aligns within the page
- horizontalPos
- IEImage..::..PrintHorizontalPos
etermines how the image horizontally aligns within the page
- size
- IEImage..::..PrintSize
determines the size of the image
- specWidth
- Double
specify the absolute width of the image in inches. Valid only when size=SpecifiedSize
- specHeight
- Double
specify the absolute height of the image in inches. Valid only when size=SpecifiedSize
- gammaCorrection
- Double
the gamma correction value, use 1 to disable gamma correction
Examples
CopyC#
// prints page 0 and 1 IEImage.PrintBegin(); ieMulti.ImageList.PrintImage(0, 0,0,0,0,IEImage.PrintVerticalPos.Center,IEImage.PrintHorizontalPos.Center,IEImage.PrintSize.SpecifiedSize,3,3,1); IEImage.PrintNewPage(); ieMulti.ImageList.PrintImage(1, 0,0,0,0,IEImage.PrintVerticalPos.Center,IEImage.PrintHorizontalPos.Center,IEImage.PrintSize.SpecifiedSize,3,3,1); IEImage.PrintEnd();