PeachBrackets
PeachBrackets.Building.DocumentNode
DocumentNode.SetImageContent Method
| Overloads | |
|---|---|
| SetImageContent(SvgImage) | Gives an image node a vector picture. |
| SetImageContent(Image) | Gives an image node a decoded raster picture. |
| SetImageContent(Func<Size,byte[]>) | Gives an image node a raster picture made when its size is known: generator is called with the size, in points, the node ends up at, and returns the encoded image. |
DocumentNode.SetImageContent(SvgImage) Method
Gives an image node a vector picture.
public void SetImageContent(PeachBrackets.Building.SvgImage svg);
Parameters
svg SvgImage
the picture
Exceptions
System.InvalidOperationException
the node is not an image
DocumentNode.SetImageContent(Image) Method
Gives an image node a decoded raster picture.
public void SetImageContent(PeachDrawing.Core.Image image);
Parameters
image Image
the picture
Exceptions
System.InvalidOperationException
the node is not an image
DocumentNode.SetImageContent(Func<Size,byte[]>) Method
Gives an image node a raster picture made when its size is known: generator is called with the size, in points, the node ends up at, and returns the encoded image.
public void SetImageContent(System.Func<PeachDrawing.Core.Size,byte[]> generator);
Parameters
generator System.Func<Size,System.Byte[]>
makes the encoded image for a size in points
Exceptions
System.InvalidOperationException
the node is not an image