iTextSharp.text.pdf.PdfContentByte.AddImage C# (CSharp) Метод

AddImage() публичный Метод

public AddImage ( Image image, bool inlineImage ) : void
image Image
inlineImage bool
Результат void
        public virtual void AddImage(Image image, bool inlineImage)
        {
            if (!image.HasAbsolutePosition())
                throw new DocumentException(MessageLocalization.GetComposedMessage("the.image.must.have.absolute.positioning"));
            float[] matrix = image.Matrix;
            matrix[Image.CX] = image.AbsoluteX - matrix[Image.CX];
            matrix[Image.CY] = image.AbsoluteY - matrix[Image.CY];
            AddImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], inlineImage);
        }

Same methods

PdfContentByte::AddImage ( Image image ) : void
PdfContentByte::AddImage ( Image image, float a, float b, float c, float d, float e, float f ) : void
PdfContentByte::AddImage ( Image image, float a, float b, float c, float d, float e, float f, bool inlineImage ) : void

Usage Example

Пример #1
1
        protected internal override void Render(PdfContentByte cb, Vector2D offset)
        {
            if (image == null)
                image = Image.GetInstance(filepath);

            image.ScaleAbsolute((float)Size.X.Value(UnitsOfMeasure.Points), (float)Size.Y.Value(UnitsOfMeasure.Points));
            image.SetAbsolutePosition((float)offset.X.Value(UnitsOfMeasure.Points), (float)offset.Y.Value(UnitsOfMeasure.Points));

            cb.AddImage(image);
        }
All Usage Examples Of iTextSharp.text.pdf.PdfContentByte::AddImage
PdfContentByte