AddPicture
Inhalt
[
Ausblenden
]AddPicture(int, int, int, int, Stream)
Fügt der Sammlung ein Bild hinzu.
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, int lowerRightRow,
int lowerRightColumn, Stream stream)
| Parameter | Typ | Beschreibung |
|---|---|---|
| upperLeftRow | Int32 | Zeilenindex oben links. |
| upperLeftColumn | Int32 | Spaltenindex oben links. |
| lowerRightRow | Int32 | Zeilenindex unten rechts |
| lowerRightColumn | Int32 | Spaltenindex unten rechts |
| stream | Stream | Stream-Objekt, das die Bilddaten enthält. |
Rückgabewert
Picture Bildobjekt.
Beispiele
[C#]
//Bild hinzufügen
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 0, 1, 0, fs);
}
Siehe auch
- class Picture
- class ShapeCollection
- namensraum Aspose.Cells.Drawing
- Montage Aspose.Cells
AddPicture(int, int, Stream, int, int)
Fügt der Sammlung ein Bild hinzu.
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, Stream stream, int widthScale,
int heightScale)
| Parameter | Typ | Beschreibung |
|---|---|---|
| upperLeftRow | Int32 | Zeilenindex oben links. |
| upperLeftColumn | Int32 | Spaltenindex oben links. |
| stream | Stream | Stream-Objekt, das die Bilddaten enthält. |
| widthScale | Int32 | Maßstab der Bildbreite, ein Prozentsatz. |
| heightScale | Int32 | Maßstab der Bildhöhe, ein Prozentsatz. |
Rückgabewert
Picture Bildobjekt.
Beispiele
[C#]
//Bild hinzufügen
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 1, fs, 50, 60);
}
Siehe auch
- class Picture
- class ShapeCollection
- namensraum Aspose.Cells.Drawing
- Montage Aspose.Cells