Image

Methods
4
Fields
5

Getting one

ImageIcon.new():getImage()

Methods

MethodReturnsDescription
getWidth(ImageObserver?)numberThe width; the observer is ignored (pass nil), as a Bento image is always complete.
getHeight(ImageObserver?)numberThe height; the observer is ignored (pass nil).
getScaledInstance(number, number, number)ImageA scaled copy: area averaging when hints has SCALE_SMOOTH or SCALE_AREA_AVERAGING, else pixel replication. A size of -1 keeps the asp…
equals(any)booleanWhether other equals this Image, as == answers it (false for a value of another class).

Fields

FieldTypeDescription
SCALE_DEFAULTnumberImage.SCALE_DEFAULT.
SCALE_FASTnumberImage.SCALE_FAST.
SCALE_SMOOTHnumberImage.SCALE_SMOOTH.
SCALE_REPLICATEnumberImage.SCALE_REPLICATE.
SCALE_AREA_AVERAGINGnumberImage.SCALE_AREA_AVERAGING.

Returned by

MethodReturnsDescription
AwtWindow.getIconImages{Image}A new array of the images setIconImages was given, in order; empty before, and after nil or {}. A dialog does not answer its owner's.
ImageIcon.getImageImage?The image, or nil for an empty icon.

Method details

getWidth

getWidth: (Image, ImageObserver?) -> number

The width; the observer is ignored (pass nil), as a Bento image is always complete.

getScaledInstance

getScaledInstance: (Image, number, number, number) -> Image

A scaled copy: area averaging when hints has SCALE_SMOOTH or SCALE_AREA_AVERAGING, else pixel replication. A size of -1 keeps the aspect ratio from the other, in int arithmetic; a size of 0 is an error. The copy is made now.

equals

equals: (Image, any) -> boolean

Whether other equals this Image, as == answers it (false for a value of another class).