公共ShiftDataCommand(
intsourceLowBit,
intsourceHighBit,
intdestinationLowBit,
intdestinationBitsPerPixel
)
公共函数新(_
按值传递sourceLowBit作为整数,_
按值传递sourceHighBit作为整数,_
按值传递destinationLowBit作为整数,_
按值传递destinationBitsPerPixel作为整数_
)
- (instancetype) initWithSourceLowBit:(了NSUInteger)sourceLowBit
sourceHighBit:(了NSUInteger)sourceHighBit
destinationLowBit:(了NSUInteger)destinationLowBit
destinationBitsPerPixel:(了NSUInteger)destinationBitsPerPixel
公共ShiftDataCommand (
intsourceLowBit,
intsourceHighBit,
intdestinationLowBit,
intdestinationBitsPerPixel
)
公共:
ShiftDataCommand (
intsourceLowBit,
intsourceHighBit,
intdestinationLowBit,
intdestinationBitsPerPixel
)
sourceLowBit
起始位的位置,将构建的面具。这个职位是一个从零开始的号码。这个参数只接受积极的价值观。
sourceHighBit
最后一点的位置。这是包容性(它是面具的一部分)。不应少于sourceLowBit价值。你也可以通过1,解释为“最高位”(SourceImage - > BitsPerPixel - 1)。该参数只接受积极的价值观。
destinationLowBit
钻头位置选择的面具将会复制到目的地形象。这个参数只接受积极的价值观。
destinationBitsPerPixel
比特每像素的目的地形象。允许的值是8、12或16。
运行ShiftDataCommand在一个图像。
使用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)
结束子
公共NotInheritable类LEAD_VARS
公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”
结束类
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。