Image.newmethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
newmethod() |
Creates a new image. |
newmethod(Object) | |
newmethod(Object, Int32) | |
newmethod(Object, Int32, Int32) |
newmethod()
Creates a new image.
protected:
override void newmethod();
protected override void newmethod ();
override this.newmethod : unit -> unit
Protected Overrides Sub newmethod ()
Remarks
You do not need to specify any parameters, but it is possible to specify the image contents and size. For the image parameter, you can specify a file name and location, a resource, a particular image in an array, or another Image object.
The following examples illustrate how you can optionally specify the existing content for the new image object.
Image img1 = new Image(@"C:\MyPicture.jpg", 100, 100);
Image img2 = new Image(121,100, 100); // Uses resource 121 in Ax32.exe
Image img4 = new Image(img1, 200, 200);
Applies to
newmethod(Object)
public:
void newmethod(System::Object ^ obj1);
public void newmethod (object obj1);
override this.newmethod : obj -> unit
Public Sub newmethod (obj1 As Object)
Parameters
- obj1
- Object
Applies to
newmethod(Object, Int32)
newmethod(Object, Int32, Int32)
public:
void newmethod(System::Object ^ _image, int _width, int _height);
public void newmethod (object _image, int _width, int _height);
override this.newmethod : obj * int * int -> unit
Public Sub newmethod (_image As Object, _width As Integer, _height As Integer)
Parameters
- _image
- Object
The height of the image in pixels; optional.
- _width
- Int32
The height of the image in pixels; optional.
- _height
- Int32
The height of the image in pixels; optional.