A shape containing bitmap image.

Namespace: TallComponents.PDF.Layout.Shapes
Assembly: 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>[]()[][]).

C#

CopyC#
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

See Also