A shape containing bitmap image.
Namespace: TallComponents.PDF.Layout.ShapesAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.66.0
Syntax
| C# |
|---|
[SerializableAttribute] public class ImageShape : ContentShape, ISerializable |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class ImageShape _ Inherits ContentShape _ Implements ISerializable |
Remarks
In XML you can specifiy the image data as Base64 encoded data.
Examples
You can convert an image file to Base64 using the .NET method ToBase64String(array<Byte>[]()[][]).
CopyC#
C#
string base64Data; using ( FileStream fs = new FileStream( fileName , FileMode.Open ) ) { byte[] bytes = new byte[ fs.Length ]; fs.Read( bytes, 0, bytes.Length ); base64Data = Convert.ToBase64String( bytes ); }
Inheritance Hierarchy
System..::..Object
TallComponents.PDF.Layout..::..Object
TallComponents.PDF.Layout.Shapes..::..Shape
TallComponents.PDF.Layout.Shapes..::..ContentShape
TallComponents.PDF.Layout.Shapes..::..ImageShape
TallComponents.PDF.Layout..::..Object
TallComponents.PDF.Layout.Shapes..::..Shape
TallComponents.PDF.Layout.Shapes..::..ContentShape
TallComponents.PDF.Layout.Shapes..::..ImageShape