←选择平台

创建方法

总结
创建一个RasterImage使用指定的参数。
语法
c#
VB
objective - c
c++
Java
公共共享函数创建(_按值传递宽度作为整数, _按值传递高度作为整数, _按值传递bitsPerPixel作为整数, _按值传递决议作为整数, _按值传递写成backgroundColor作为RasterColor_作为RasterImage
+ (nullable instancetype)coloredImageWithWidth:(NSInteger)宽度高度(NSInteger):高度bitsPerPixel:(NSInteger)bitsPerPixel分辨率:(NSInteger)决议backgroundColor:(nullable LTRasterColor *错误:错误(NSError * *)
公共静态RasterImage创建(int宽度int高度intbitsPerPixelint决议RasterColor写成backgroundColor
公共静态RasterImage ^创建(int宽度int高度intbitsPerPixelint决议RasterColor写成backgroundColor

参数

宽度
以像素为单位的图像宽度。

高度
以像素为单位的图像高度。

bitsPerPixel
每像素的比特数。

取值范围为:1、2、3、4、5、6、7、8、16、24、32、48、64。

决议
值作为图像的x和y分辨率。

写成backgroundColor
RasterColor它将用于填充新图像。

返回值

新创建的RasterImage对象。

需求

目标平台

另请参阅

参考

RasterImage类

RasterImage成员

Leadtools组装
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。