ImageNew()
Creates a new image from a variety of different sources, or creates a brand new one
Usage
IMAGE = ImageNew(
src,
width,
height,
type,
canvascolor
)
Argument | Summary |
---|---|
src | this is the source of the image; url, blob, binary object, file location, BufferedImage [optional] |
width | if the source is blank, then a basic image is created using this width - default 250 [optional] |
height | if the source is blank, then a basic image is created using this width - default 250 [optional] |
type | if the source is blank the type of image that will be created. valid types: rgb, argb, grayscale, 3byte_bgr, 4byte_bgr, 4byte_abgr, 4byte_abgr_pre, byte_binary, byte_indexed, int_argb_pre, int_bgr [optional] |
canvascolor | the color of the image [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
ImageNew( src=?, width=?, height=?, type=?, canvascolor=? );
Supports passing parameters as a structure using ArgumentCollection:
ImageNew( ArgumentCollection={ src : ?, width : ?, height : ?, type : ?, canvascolor : ? } );
See Also
ImageAddborder
ImageBlur
ImageClearrect
ImageContrastbrightness
ImageCopy
ImageCrop
ImageDrawarc
ImageDrawbeveledrect
ImageDrawline
ImageDrawlines
ImageDrawoval
ImageDrawpoint
ImageDrawrect
ImageDrawroundrect
ImageDrawtext
ImageFlip
ImageGetblob
ImageGetbufferedimage
ImageGetexifmetadata
ImageGetexiftag
ImageGetheight
ImageGetwidth
ImageGrayscale
ImageInfo
ImageNegative
ImageNew
ImagePaste
ImageRead
ImageReadbase64
ImageReflection
ImageResize
ImageRotate
ImageSetantialiasing
ImageSetbackgroundcolor
ImageSetdrawingcolor
ImageSharpen
ImageWrite
ImageWritebase64
ImageXordrawingmode
IsImage
ToDatauri