AddPicture
Innehåll
[
Dölj
]AddPicture(int, int, int, int, Stream)
Lägger till en bild i samlingen.
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, int lowerRightRow,
int lowerRightColumn, Stream stream)
| Parameter | Typ | Beskrivning |
|---|---|---|
| upperLeftRow | Int32 | Övre vänstra radens index. |
| upperLeftColumn | Int32 | Övre vänstra kolumnindex. |
| lowerRightRow | Int32 | Nedre högra radindex |
| lowerRightColumn | Int32 | Nedre högra kolumnindex |
| stream | Stream | Strömobjekt som innehåller bilddata. |
Returvärde
Picture Bildobjekt.
Exempel
[C#]
//lägg till en bild
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 0, 1, 0, fs);
}
Se även
- class Picture
- class ShapeCollection
- namnutrymme Aspose.Cells.Drawing
- hopsättning Aspose.Cells
AddPicture(int, int, Stream, int, int)
Lägger till en bild i samlingen.
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, Stream stream, int widthScale,
int heightScale)
| Parameter | Typ | Beskrivning |
|---|---|---|
| upperLeftRow | Int32 | Övre vänstra radens index. |
| upperLeftColumn | Int32 | Övre vänstra kolumnindex. |
| stream | Stream | Strömobjekt som innehåller bilddata. |
| widthScale | Int32 | Skala på bildens bredd, en procentandel. |
| heightScale | Int32 | Skala för bildhöjd, en procentandel. |
Returvärde
Picture Bildobjekt.
Exempel
[C#]
//lägg till en bild
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 1, fs, 50, 60);
}
Se även
- class Picture
- class ShapeCollection
- namnutrymme Aspose.Cells.Drawing
- hopsättning Aspose.Cells