Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 如何(按像素)对图像进行乘法?_Image - Fatal编程技术网

Image 如何(按像素)对图像进行乘法?

Image 如何(按像素)对图像进行乘法?,image,Image,如何(按像素)对图像进行乘法 请为正在使用的编程语言添加标记。Java?你的代码怎么了? Bitmap first = new Bitmap(pictureBox1.Image); Bitmap second = ProcesarImagen.SetImageOpacity(pictureBox2.Image, 0.5f); Bitmap result = new Bitmap(Math.Max(first.Width, second.Width), Math.Max(first.Height,

如何(按像素)对图像进行乘法


请为正在使用的编程语言添加标记。Java?你的代码怎么了?
Bitmap first = new Bitmap(pictureBox1.Image);
Bitmap second = ProcesarImagen.SetImageOpacity(pictureBox2.Image, 0.5f);
Bitmap result = new Bitmap(Math.Max(first.Width, second.Width), Math.Max(first.Height, second.Height));
Console.WriteLine(first.Width);
Graphics g = Graphics.FromImage(result);
g.DrawImageUnscaled(first, 0, 0);
g.DrawImageUnscaled(second, 0, 0);
pictureBox3.Image = result;