←选择平台

MultiplyCommand构造函数(int)

总结
用显式参数初始化一个新的MultiplyCommand类对象。
语法
c#
VB
objective - c
c++
Java
公共MultiplyCommandint因素
公共函数(_按值传递因素作为整数_
- (instancetype) initWithFactor:(了NSUInteger)因素
公共MultiplyCommand (int因素
公共MultiplyCommand (int因素

参数

因素
一个整数,表示图像值相乘时要使用的因子。使用的因子等于因子/100。只接受正的值。

例子

运行MultiplyCommand在因子= 1.51的图像上。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Color;公共无效MultiplyConstructorExample ()//加载图像RasterCodecs codecs =RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“IMAGE1。CMP”));//准备命令multiycommand command =MultiplyCommand (151);//将图像的颜色乘以1.51。command.Run(图片);编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24);静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”
进口Leadtools进口Leadtools。编解码器进口Leadtools.ImageProcessing.Color公共MultiplyConstructorExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“IMAGE1。CMP”))准备命令昏暗的命令作为MultiplyCommand =MultiplyCommand (151)“将图像的颜色乘以1.51。command.Run (leadImage)编解码器。保存(leadImage Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

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