xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 成员变量 | 静态 Public 属性
QImage类 参考

Public 成员函数

成员变量

静态 Public 属性

详细描述

在文件 QImage.xcsm4 行定义.

构造及析构函数说明

◆ QImage() [1/6]

QImage ( long  h)

在文件 QImage.xcsm6 行定义.

6 {
7 himage = h;
8 }
long himage
Definition QImage.xcsm:5

◆ QImage() [2/6]

QImage ( )

在文件 QImage.xcsm37 行定义.

37 {
38
39 }

◆ QImage() [3/6]

QImage ( String  file,
String  format 
) throws IllegalArgumentException

在文件 QImage.xcsm41 行定义.

41 {
42 himage = QtXnl.long_string2(0, Constant.IMGLOAD, file, format);
43 if (himage == 0){
44 throw new IllegalArgumentException("can not load file:" + file);
45 }
46 }

◆ QImage() [4/6]

QImage ( byte []  data,
String  format 
) throws IllegalArgumentException

在文件 QImage.xcsm48 行定义.

48 {
49 himage = QtXnl.long_object_string(0, Constant.IMGLOAD, data, format);
50 if (himage == 0){
51 throw new IllegalArgumentException("can not load from data");
52 }
53 }

◆ QImage() [5/6]

QImage ( int  width,
int  height,
int  format 
) throws IllegalArgumentException

在文件 QImage.xcsm55 行定义.

55 {
56 long wh = width;
57 wh <<= 32;
58
59 himage = QtXnl.long_intlong2(0, Constant.IMGLOAD, wh | height, format);
60
61 if (himage == 0){
62 throw new IllegalArgumentException("can not load from data");
63 }
64 }
int width()
Definition QImage.xcsm:92

◆ QImage() [6/6]

QImage ( byte []  data,
int  width,
int  height,
int  format 
) throws IllegalArgumentException

在文件 QImage.xcsm66 行定义.

66 {
67 long wh = width;
68 wh <<= 32;
69
70 himage = QtXnl.pointer_intlong2(data, Constant.IMGLOAD, wh | height, format);
71
72 if (himage == 0){
73 throw new IllegalArgumentException("can not load from data");
74 }
75
76 }

成员函数说明

◆ finalize()

void finalize ( )

在文件 QImage.xcsm78 行定义.

78 {
79 if (himage != 0){
80 QtXnl.widget_slot(himage, Constant.DELETEIMAGE);
81 }
82 }

◆ format()

int format ( )

在文件 QImage.xcsm100 行定义.

100 {
101 return QtXnl.widget_get_int_value(himage, Constant.IMGFORMAT);
102 }

◆ getdata()

byte [] getdata ( )

在文件 QImage.xcsm104 行定义.

104 {
105 return (byte[])QtXnl.object_get_handle(himage, Constant.IMGGETDATA, 0);
106 }

◆ getPixels()

int [] getPixels ( )

在文件 QImage.xcsm108 行定义.

108 {
109 return (int[])QtXnl.object_get_handle(himage, Constant.IMGGETDATA, 1);
110 }

◆ height()

int height ( )

在文件 QImage.xcsm96 行定义.

96 {
97 return QtXnl.widget_get_int_value(himage, Constant.IMGHEIGHT);
98 }

◆ saveToFile() [1/2]

bool saveToFile ( String  filename,
String  format 
)

在文件 QImage.xcsm88 行定义.

88 {
89 return QtXnl.long_long_string2(himage, Constant.QIMGSAVE, -1, filename, format) != 0;
90 }

◆ saveToFile() [2/2]

bool saveToFile ( String  filename,
String  format,
int  quality 
)

在文件 QImage.xcsm84 行定义.

84 {
85 return QtXnl.long_long_string2(himage, Constant.QIMGSAVE, quality, filename, format) != 0;
86 }

◆ width()

int width ( )

在文件 QImage.xcsm92 行定义.

92 {
93 return QtXnl.widget_get_int_value(himage, Constant.IMGWIDTH);
94 }

结构体成员变量说明

◆ Format_A2BGR30_Premultiplied

const int Format_A2BGR30_Premultiplied = 20
static

在文件 QImage.xcsm30 行定义.

◆ Format_A2RGB30_Premultiplied

const int Format_A2RGB30_Premultiplied = 22
static

在文件 QImage.xcsm32 行定义.

◆ Format_Alpha8

const int Format_Alpha8 = 23
static

在文件 QImage.xcsm33 行定义.

◆ Format_ARGB32

const int Format_ARGB32 = 5
static

在文件 QImage.xcsm15 行定义.

◆ Format_ARGB32_Premultiplied

const int Format_ARGB32_Premultiplied = 6
static

在文件 QImage.xcsm16 行定义.

◆ Format_ARGB4444_Premultiplied

const int Format_ARGB4444_Premultiplied = 15
static

在文件 QImage.xcsm25 行定义.

◆ Format_ARGB6666_Premultiplied

const int Format_ARGB6666_Premultiplied = 10
static

在文件 QImage.xcsm20 行定义.

◆ Format_ARGB8555_Premultiplied

const int Format_ARGB8555_Premultiplied = 12
static

在文件 QImage.xcsm22 行定义.

◆ Format_ARGB8565_Premultiplied

const int Format_ARGB8565_Premultiplied = 8
static

在文件 QImage.xcsm18 行定义.

◆ Format_BGR30

const int Format_BGR30 = 19
static

在文件 QImage.xcsm29 行定义.

◆ Format_Grayscale8

const int Format_Grayscale8 = 24
static

在文件 QImage.xcsm34 行定义.

◆ Format_Indexed8

const int Format_Indexed8 = 3
static

在文件 QImage.xcsm13 行定义.

◆ Format_Invalid

const int Format_Invalid = 0
static

在文件 QImage.xcsm10 行定义.

◆ Format_Mono

const int Format_Mono = 1
static

在文件 QImage.xcsm11 行定义.

◆ Format_MonoLSB

const int Format_MonoLSB = 2
static

在文件 QImage.xcsm12 行定义.

◆ Format_RGB16

const int Format_RGB16 = 7
static

在文件 QImage.xcsm17 行定义.

◆ Format_RGB30

const int Format_RGB30 = 21
static

在文件 QImage.xcsm31 行定义.

◆ Format_RGB32

const int Format_RGB32 = 4
static

在文件 QImage.xcsm14 行定义.

◆ Format_RGB444

const int Format_RGB444 = 14
static

在文件 QImage.xcsm24 行定义.

◆ Format_RGB555

const int Format_RGB555 = 11
static

在文件 QImage.xcsm21 行定义.

◆ Format_RGB666

const int Format_RGB666 = 9
static

在文件 QImage.xcsm19 行定义.

◆ Format_RGB888

const int Format_RGB888 = 13
static

在文件 QImage.xcsm23 行定义.

◆ Format_RGBA8888

const int Format_RGBA8888 = 17
static

在文件 QImage.xcsm27 行定义.

◆ Format_RGBA8888_Premultiplied

const int Format_RGBA8888_Premultiplied = 18
static

在文件 QImage.xcsm28 行定义.

◆ Format_RGBX8888

const int Format_RGBX8888 = 16
static

在文件 QImage.xcsm26 行定义.

◆ himage

long himage

在文件 QImage.xcsm5 行定义.

◆ NImageFormats

const int NImageFormats = 25
static

在文件 QImage.xcsm35 行定义.