←选择平台

ShiftDataCommand构造函数(int, int, int, int)

总结
初始化一个新的ShiftDataCommand类对象与显式参数。
语法
c#
VB
objective - c
c++
Java
公共函数(_按值传递sourceLowBit作为整数,_按值传递sourceHighBit作为整数,_按值传递destinationLowBit作为整数,_按值传递destinationBitsPerPixel作为整数_)
- (instancetype) initWithSourceLowBit:(了NSUInteger)sourceLowBitsourceHighBit:(了NSUInteger)sourceHighBitdestinationLowBit:(了NSUInteger)destinationLowBitdestinationBitsPerPixel:(了NSUInteger)destinationBitsPerPixel

参数

sourceLowBit
起始位的位置,将构建的面具。这个职位是一个从零开始的号码。这个参数只接受积极的价值观。

sourceHighBit
最后一点的位置。这是包容性(它是面具的一部分)。不应少于sourceLowBit价值。你也可以通过1,解释为“最高位”(SourceImage - > BitsPerPixel - 1)。该参数只接受积极的价值观。

destinationLowBit
钻头位置选择的面具将会复制到目的地形象。这个参数只接受积极的价值观。

destinationBitsPerPixel
比特每像素的目的地形象。允许的值是8、12或16。

例子

运行ShiftDataCommand在一个图像。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效ShiftDataConstructorExample (){/ /加载一个图像RasterCodecs编解码器=RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,@“ImageProcessingDemo \ Beauty16.jpg”));/ /准备命令ShiftDataCommand命令=ShiftDataCommand (2、6、3、8);/ /移动5位从2位到高影响的图像。command.Run(图片);codecs.Save(命令。DestinationImage Path.Combine (LEAD_VARS.ImagesDir,“ShiftDataResult.bmp”),RasterImageFormat。Bmp、24);}静态LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Core公共ShiftDataConstructorExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“ImageProcessingDemo \ Beauty16.jpg”))“准备的命令昏暗的命令作为ShiftDataCommand =ShiftDataCommand (2、6、3、8)的5位从钻头2进入的高比特影响形象。command.Run (leadImage)codecs.Save(命令。DestinationImage Path.Combine (LEAD_VARS.ImagesDir,“ShiftDataResult.Bmp”),RasterImageFormat。Bmp, 24)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

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