AddPictureInPixel(String,Double,Double,Double,Double) Method

Spread.Services Documentation
AddPictureInPixel(String,Double,Double,Double,Double) Method
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C#
C#

GrapeCity.Documents.Spread.Drawing Namespace > IShapes Interface > AddPictureInPixel Method : AddPictureInPixel(String,Double,Double,Double,Double) Method

The file from which the object is to be created
The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
The position (in pixels) of the upper-left corner of the picture relative to the top of the document.
The width of the picture, in pixels.
The height of the picture, in pixels.
Creates a picture from an existing file. Returns the IShape object that represents the new picture.
Syntax

- C#

    IShape AddPictureInPixel(
       System.string filename,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

#### Parameters

filename
  The file from which the object is to be created
left
  The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
top
  The position (in pixels) of the upper-left corner of the picture relative to the top of the document.
width
  The width of the picture, in pixels.
height
  The height of the picture, in pixels.

#### Return Value

The IShape object.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

#### Reference

IShapes Interface
IShapes Members
Overload List

Copyright © GrapeCity, inc. All rights reserved.

Send Feedback