←选择平台

CreateGrayscale方法

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

参数

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

高度
高像素的图像。

bitsPerPixel
比特每像素的数量。

有效值是8、12、16。

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

返回值

新创建的灰度RasterImage对象。

讲话

关于创建和使用灰度图像的更多信息,请参考灰度图像

需求

目标平台

另请参阅

参考

RasterImage类

RasterImage成员

Leadtools组装
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。