|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.impl.QtResource<QPixmap>
com.sibvisions.rad.ui.qt.impl.QtImage
public class QtImage
The QtImage represents graphical images.
QPixmap| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
resource |
| Constructor Summary | |
|---|---|
QtImage(QIcon pIcon)
Creates an instance of QtImage based on
a QIcon. |
|
QtImage(QPixmap pImage)
Creates an instance of QtImage based on
a QPixmap. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Determines the height of the image. |
int |
getWidth()
Determines the width of the image. |
void |
saveAs(String pFileName)
Saves the current image as file. |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
equals, getResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public QtImage(QPixmap pImage)
QtImage based on
a QPixmap.
pImage - QPixmapQPixmappublic QtImage(QIcon pIcon)
QtImage based on
a QIcon.
pIcon - the iconQIcon| Method Detail |
|---|
public int getWidth()
-1.
getWidth in interface IImage-1
if the width is not yet known.Image.getHeight(java.awt.image.ImageObserver)public int getHeight()
-1.
getHeight in interface IImage-1
if the height is not yet known.Image.getWidth(java.awt.image.ImageObserver)
public void saveAs(String pFileName)
throws IOException
saveAs in interface IImagepFileName - the filename
IOException - if the image can not be saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||