[]
public Picture Add()
Public Function Add() As Picture
public Picture Add(byte[] imageBytes, string contentType)
Public Function Add(imageBytes As Byte(), contentType As String) As Picture
Type | Name | Description |
---|---|---|
byte[] | imageBytes | The image data representing the picture. |
string | contentType | The content type of the image data. |
public Picture Add(Image image)
Public Function Add(image As Image) As Picture
Type | Name | Description |
---|---|---|
Image | image | The GrapeCity.Documents.Drawing.Image object representing the picture. |
Type | Description |
---|---|
Picture | The added Picture. The size of the picture is set to the size of the source image. |
Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.
public Picture Add(byte[] imageBytes, string contentType, float width, float height)
Public Function Add(imageBytes As Byte(), contentType As String, width As Single, height As Single) As Picture
Type | Name | Description |
---|---|---|
byte[] | imageBytes | The image data representing the picture. |
string | contentType | The content type of the image data. |
float | width | The picture's width, in points. |
float | height | The picture's height, in points. |