org.kde.qt
Class QImage
java.lang.Object
org.kde.qt.QImage
- All Implemented Interfaces:
- QtSupport
public class QImage
- extends java.lang.Object
- implements QtSupport
Constructor Summary |
|
QImage()
|
|
QImage(byte[] data)
|
|
QImage(char[] data,
int w,
int h,
int depth,
int[] colortable,
int numColors,
int bitOrder)
|
protected |
QImage(java.lang.Class dummy)
|
|
QImage(int width,
int height,
int depth)
|
|
QImage(int width,
int height,
int depth,
int numColors)
|
|
QImage(int width,
int height,
int depth,
int numColors,
int bitOrder)
|
|
QImage(QImage arg1)
|
|
QImage(QSize arg1,
int depth)
|
|
QImage(QSize arg1,
int depth,
int numColors)
|
|
QImage(QSize arg1,
int depth,
int numColors,
int bitOrder)
|
|
QImage(java.lang.String fileName)
|
|
QImage(java.lang.String fileName,
java.lang.String format)
|
Method Summary |
boolean |
allGray()
|
int |
bitOrder()
|
byte[] |
bits()
|
int |
bytesPerLine()
|
int |
color(int i)
|
int[] |
colorTable()
|
QImage |
convertBitOrder(int arg1)
|
QImage |
convertDepth(int arg1)
|
QImage |
convertDepth(int arg1,
int conversion_flags)
|
QImage |
convertDepthWithPalette(int arg1,
int[] p,
int pc)
|
QImage |
convertDepthWithPalette(int arg1,
int[] p,
int pc,
int cf)
|
QImage |
copy()
|
QImage |
copy(int x,
int y,
int w,
int h)
|
QImage |
copy(int x,
int y,
int w,
int h,
int conversion_flags)
|
QImage |
copy(QRect arg1)
|
boolean |
create(int width,
int height,
int depth)
|
boolean |
create(int width,
int height,
int depth,
int numColors)
|
boolean |
create(int width,
int height,
int depth,
int numColors,
int bitOrder)
|
boolean |
create(QSize arg1,
int depth)
|
boolean |
create(QSize arg1,
int depth,
int numColors)
|
boolean |
create(QSize arg1,
int depth,
int numColors,
int bitOrder)
|
QImage |
createAlphaMask()
|
QImage |
createAlphaMask(int conversion_flags)
|
QImage |
createHeuristicMask()
|
QImage |
createHeuristicMask(boolean clipTight)
|
int |
depth()
|
void |
detach()
|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
int |
dotsPerMeterX()
|
int |
dotsPerMeterY()
|
void |
fill(int pixel)
|
protected void |
finalize()
Deletes the wrapped C++ instance |
static QImage |
fromMimeSource(java.lang.String abs_name)
|
boolean |
hasAlphaBuffer()
|
int |
height()
|
static java.lang.String |
imageFormat(java.lang.String fileName)
|
static java.util.ArrayList |
inputFormatList()
|
static java.util.ArrayList |
inputFormats()
|
void |
invertPixels()
|
void |
invertPixels(boolean invertAlpha)
|
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
isGrayscale()
|
boolean |
isNull()
|
java.util.ArrayList |
jumpTable()
|
boolean |
load(java.lang.String fileName)
|
boolean |
load(java.lang.String fileName,
java.lang.String format)
|
boolean |
loadFromData(byte[] data)
|
boolean |
loadFromData(byte[] data,
java.lang.String format)
|
boolean |
loadFromData(char[] buf,
int len)
|
boolean |
loadFromData(char[] buf,
int len,
java.lang.String format)
|
QImage |
mirror()
|
QImage |
mirror(boolean horizontally,
boolean vertically)
|
int |
numBytes()
|
int |
numColors()
|
QPoint |
offset()
|
boolean |
op_equals(QImage arg1)
|
boolean |
op_not_equals(QImage arg1)
|
static java.util.ArrayList |
outputFormatList()
|
static java.util.ArrayList |
outputFormats()
|
int |
pixel(int x,
int y)
|
int |
pixelIndex(int x,
int y)
|
QRect |
rect()
|
void |
reset()
|
boolean |
save(QIODeviceInterface device,
java.lang.String format)
|
boolean |
save(QIODeviceInterface device,
java.lang.String format,
int quality)
|
boolean |
save(java.lang.String fileName,
java.lang.String format)
|
boolean |
save(java.lang.String fileName,
java.lang.String format,
int quality)
|
QImage |
scale(int w,
int h)
|
QImage |
scale(int w,
int h,
int mode)
|
QImage |
scale(QSize s)
|
QImage |
scale(QSize s,
int mode)
|
QImage |
scaleHeight(int h)
|
QImage |
scaleWidth(int w)
|
byte[] |
scanLine(int arg1)
|
void |
setAlphaBuffer(boolean arg1)
|
void |
setColor(int i,
int c)
|
void |
setDotsPerMeterX(int arg1)
|
void |
setDotsPerMeterY(int arg1)
|
void |
setNumColors(int arg1)
|
void |
setOffset(QPoint arg1)
|
void |
setPixel(int x,
int y,
int index_or_rgb)
|
void |
setText(java.lang.String key,
java.lang.String lang,
java.lang.String arg3)
|
QSize |
size()
|
QImage |
smoothScale(int w,
int h)
|
QImage |
smoothScale(int w,
int h,
int mode)
|
QImage |
smoothScale(QSize s)
|
QImage |
smoothScale(QSize s,
int mode)
|
QImage |
swapRGB()
|
static int |
systemBitOrder()
|
static int |
systemByteOrder()
|
java.lang.String |
text(QImageTextKeyLang arg1)
|
java.lang.String |
text(java.lang.String key)
|
java.lang.String |
text(java.lang.String key,
java.lang.String lang)
|
java.util.ArrayList |
textKeys()
|
java.util.ArrayList |
textLanguages()
|
boolean |
valid(int x,
int y)
|
int |
width()
|
java.lang.Object |
xForm(QWMatrix matrix)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IgnoreEndian
public static final int IgnoreEndian
- See Also:
- Constant Field Values
BigEndian
public static final int BigEndian
- See Also:
- Constant Field Values
LittleEndian
public static final int LittleEndian
- See Also:
- Constant Field Values
ScaleFree
public static final int ScaleFree
- See Also:
- Constant Field Values
ScaleMin
public static final int ScaleMin
- See Also:
- Constant Field Values
ScaleMax
public static final int ScaleMax
- See Also:
- Constant Field Values
QImage
protected QImage(java.lang.Class dummy)
QImage
public QImage()
QImage
public QImage(int width,
int height,
int depth,
int numColors,
int bitOrder)
QImage
public QImage(int width,
int height,
int depth,
int numColors)
QImage
public QImage(int width,
int height,
int depth)
QImage
public QImage(QSize arg1,
int depth,
int numColors,
int bitOrder)
QImage
public QImage(QSize arg1,
int depth,
int numColors)
QImage
public QImage(QSize arg1,
int depth)
QImage
public QImage(java.lang.String fileName,
java.lang.String format)
QImage
public QImage(java.lang.String fileName)
QImage
public QImage(byte[] data)
QImage
public QImage(char[] data,
int w,
int h,
int depth,
int[] colortable,
int numColors,
int bitOrder)
QImage
public QImage(QImage arg1)
op_equals
public boolean op_equals(QImage arg1)
op_not_equals
public boolean op_not_equals(QImage arg1)
detach
public void detach()
copy
public QImage copy()
copy
public QImage copy(int x,
int y,
int w,
int h,
int conversion_flags)
copy
public QImage copy(int x,
int y,
int w,
int h)
copy
public QImage copy(QRect arg1)
isNull
public boolean isNull()
width
public int width()
height
public int height()
size
public QSize size()
rect
public QRect rect()
depth
public int depth()
numColors
public int numColors()
bitOrder
public int bitOrder()
color
public int color(int i)
setColor
public void setColor(int i,
int c)
setNumColors
public void setNumColors(int arg1)
hasAlphaBuffer
public boolean hasAlphaBuffer()
setAlphaBuffer
public void setAlphaBuffer(boolean arg1)
allGray
public boolean allGray()
isGrayscale
public boolean isGrayscale()
bits
public byte[] bits()
scanLine
public byte[] scanLine(int arg1)
jumpTable
public java.util.ArrayList jumpTable()
colorTable
public int[] colorTable()
numBytes
public int numBytes()
bytesPerLine
public int bytesPerLine()
create
public boolean create(int width,
int height,
int depth,
int numColors,
int bitOrder)
create
public boolean create(int width,
int height,
int depth,
int numColors)
create
public boolean create(int width,
int height,
int depth)
create
public boolean create(QSize arg1,
int depth,
int numColors,
int bitOrder)
create
public boolean create(QSize arg1,
int depth,
int numColors)
create
public boolean create(QSize arg1,
int depth)
reset
public void reset()
fill
public void fill(int pixel)
invertPixels
public void invertPixels(boolean invertAlpha)
invertPixels
public void invertPixels()
convertDepth
public QImage convertDepth(int arg1)
convertDepthWithPalette
public QImage convertDepthWithPalette(int arg1,
int[] p,
int pc,
int cf)
convertDepthWithPalette
public QImage convertDepthWithPalette(int arg1,
int[] p,
int pc)
convertDepth
public QImage convertDepth(int arg1,
int conversion_flags)
convertBitOrder
public QImage convertBitOrder(int arg1)
smoothScale
public QImage smoothScale(int w,
int h,
int mode)
smoothScale
public QImage smoothScale(int w,
int h)
smoothScale
public QImage smoothScale(QSize s,
int mode)
smoothScale
public QImage smoothScale(QSize s)
scale
public QImage scale(int w,
int h,
int mode)
scale
public QImage scale(int w,
int h)
scale
public QImage scale(QSize s,
int mode)
scale
public QImage scale(QSize s)
scaleWidth
public QImage scaleWidth(int w)
scaleHeight
public QImage scaleHeight(int h)
xForm
public java.lang.Object xForm(QWMatrix matrix)
createAlphaMask
public QImage createAlphaMask(int conversion_flags)
createAlphaMask
public QImage createAlphaMask()
createHeuristicMask
public QImage createHeuristicMask(boolean clipTight)
createHeuristicMask
public QImage createHeuristicMask()
mirror
public QImage mirror()
mirror
public QImage mirror(boolean horizontally,
boolean vertically)
swapRGB
public QImage swapRGB()
load
public boolean load(java.lang.String fileName,
java.lang.String format)
load
public boolean load(java.lang.String fileName)
loadFromData
public boolean loadFromData(char[] buf,
int len,
java.lang.String format)
loadFromData
public boolean loadFromData(char[] buf,
int len)
loadFromData
public boolean loadFromData(byte[] data,
java.lang.String format)
loadFromData
public boolean loadFromData(byte[] data)
save
public boolean save(java.lang.String fileName,
java.lang.String format,
int quality)
save
public boolean save(java.lang.String fileName,
java.lang.String format)
save
public boolean save(QIODeviceInterface device,
java.lang.String format,
int quality)
save
public boolean save(QIODeviceInterface device,
java.lang.String format)
valid
public boolean valid(int x,
int y)
pixelIndex
public int pixelIndex(int x,
int y)
pixel
public int pixel(int x,
int y)
setPixel
public void setPixel(int x,
int y,
int index_or_rgb)
dotsPerMeterX
public int dotsPerMeterX()
dotsPerMeterY
public int dotsPerMeterY()
setDotsPerMeterX
public void setDotsPerMeterX(int arg1)
setDotsPerMeterY
public void setDotsPerMeterY(int arg1)
offset
public QPoint offset()
setOffset
public void setOffset(QPoint arg1)
textLanguages
public java.util.ArrayList textLanguages()
textKeys
public java.util.ArrayList textKeys()
text
public java.lang.String text(java.lang.String key,
java.lang.String lang)
text
public java.lang.String text(java.lang.String key)
text
public java.lang.String text(QImageTextKeyLang arg1)
setText
public void setText(java.lang.String key,
java.lang.String lang,
java.lang.String arg3)
fromMimeSource
public static QImage fromMimeSource(java.lang.String abs_name)
systemBitOrder
public static int systemBitOrder()
systemByteOrder
public static int systemByteOrder()
imageFormat
public static java.lang.String imageFormat(java.lang.String fileName)
inputFormats
public static java.util.ArrayList inputFormats()
outputFormats
public static java.util.ArrayList outputFormats()
inputFormatList
public static java.util.ArrayList inputFormatList()
outputFormatList
public static java.util.ArrayList outputFormatList()
finalize
protected void finalize()
throws java.lang.InternalError
- Deletes the wrapped C++ instance
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.InternalError
dispose
public void dispose()
- Delete the wrapped C++ instance ahead of finalize()
isDisposed
public boolean isDisposed()
- Has the wrapped C++ instance been deleted?