AddSvg
ShapeCollection.AddSvg method
Aggiunge immagine svg.
public Picture AddSvg(int upperLeftRow, int top, int upperLeftColumn, int left, int height,
int width, byte[] svgData, byte[] compatibleImageData)
Parametro | Tipo | Descrizione |
---|---|---|
upperLeftRow | Int32 | Indice della riga in alto a sinistra. |
top | Int32 | Rappresenta l’offset verticale della forma dalla riga sinistra, in unità di pixel. |
upperLeftColumn | Int32 | Indice della colonna in alto a sinistra. |
left | Int32 | L’offset orizzontale della forma dalla colonna di sinistra, in unità di pixel. |
height | Int32 | L’altezza della forma, in unità di pixel. |
width | Int32 | La larghezza della forma, in unità di pixel. |
svgData | Byte[] | I dati dell’immagine svg. |
compatibleImageData | Byte[] | Dati immagine convertiti da svg per essere compatibili con Excel 2016 o versioni precedenti. |
Esempi
[C#]
// aggiungi un svg
using (FileStream fs = new FileStream("image.svg", FileMode.Open))
{
int len = (int)fs.Length;
byte[] imageData = new byte[len];
fs.Read(imageData, 0, len);
Picture picture = shapes.AddSvg(4, 0, 5, 0, -1, -1, imageData, null);
}
Guarda anche
- class Picture
- class ShapeCollection
- spazio dei nomi Aspose.Cells.Drawing
- assemblea Aspose.Cells