herrDeng網內搜尋

自訂搜尋

Ads

2017年11月29日 星期三

ex9 使用.NET Bitmap class

34 則留言:

B10433065劉勝威 提到...

#include<iostream>
#include<cstdlib>
using namespace std;
#using<System.Drawing.dll>
using namespace System::Drawing;
//Bitmap 類別
//https://msdn.microsoft.com/zh-tw/library/system.drawing.bitmap(v=vs.110).aspx
int main() {
cout << "我們要測試圖檔:lena\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << "H=" << H << "\nW=" << W<<endl;
Bitmap im2(W,H );
for (int x = 0; x < W; x++) {
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color pp2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, pp2);
}
}
im2.Save("lena_C.png");
system("Pause");
return 0;
}

B10433081 巫明芬 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533007 魏辰熾 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_B.JPG");
system("Pause");
return 0;
}

B10533011 江道逸 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

B10433072 廖翊翔 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10433094 簡筱芸 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533008 張士晟 提到...

#include
#include
using namespace std;
#using
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,0);
im2.SetPixel(x, y, p2);
}
im2.Save("000_R.JPG");
system("Pause");
return 0;
}

B10433090 蔡語鋐 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10433073 何明宗 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533008 張士晟 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,0);
im2.SetPixel(x, y, p2);
}
im2.Save("000_R.JPG");
system("Pause");
return 0;
}

B10533009 張仲崴 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,0);
im2.SetPixel(x, y, p2);
}
im2.Save("000_R.JPG");
system("Pause");
return 0;
}

B10433106 簡瑋佑 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533018 陳郁傑 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,0);
im2.SetPixel(x, y, p2);
}
im2.Save("000_R.JPG");
system("Pause");
return 0;
}

B10533132許敏茹 提到...

#include <iostream>
#include <cstdlib>
using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for (int x=0; x<W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, 0);
im2.SetPixel(x, y, p2);
}
im2.Save("lean_R.png");
system("Pause");
return 0;
}

B10533017古峻衛 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

B10533006 劉純賓 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

B10533011 江道逸 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

B10533029游淑娥 提到...

#include <iostream>
#include <cstdlib>
#include <fstream>
using namespace std;
#using<System.Drawing.dll>
using namespace System;; Drawing;

int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("C:\\Users\\a426\\Desktop\\vc\\bitmap\\lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, 0);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_G.jpg");
system("Pause");
return 0;
}

B10533064蔡佩芸 提到...

#include <iostream>
#include <cstdlib>
#include <fstream>
using namespace std;
#using<System.Drawing.dll>
using namespace System;; Drawing;

int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("C:\\Users\\a426\\Desktop\\vc\\bitmap\\lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, 0);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_G.jpg");
system("Pause");
return 0;
}

B10533010蕭凱維 提到...

#include
#include
using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("C:\\Users\\a426\\Desktop\\B10533010\\lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for (int x = 0; x<W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, 0);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_R.png");
system("Pause");
return 0;
}

B10433099 駱婉婷 提到...

#include <iostream>
#include <cstdlib>
using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;

int main()
{
cout << "我們要測試圖檔\"Alien\"!\n";
Bitmap im("Alien.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "" << H << endl;
Bitmap im2(W, H);
for(int x=0 ; x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
R = (int)(0.9*R);
G = (int)(0.5*G);

Color p2 = Color::FromArgb(R,G,0);
im2.SetPixel(x, y, p2);
}
im2.Save("Alien_B1.png");
system("Pause");
return 0;
}

B10433107袁婕寧 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;

int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("C:\\Users\\a426\\Desktop\\vc\\Project1\\Project1\\lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for (int x = 0; x<W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena.png");
system("Pause");
return 0;
}

b10433071 雷昕翰 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

b10433088葉凱文 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10537208楊蕊筑 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533088葉俊江 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10537208楊蕊筑 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533071徐琮淇 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

B10533088葉俊江 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

b10333093徐子軒 提到...

#include<iostream>
#include<cstdlib>

using namespace std;

#using <System.Drawing.dll>
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "\t" << H << endl;
Bitmap im2(W, H);
for (int x = 0; x<W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

b10533031沈宏儒 提到...

#include
#include
using namespace std;
#using
using namespace System::Drawing;
//Bitmap 類別
//https://msdn.microsoft.com/zh-tw/library/system.drawing.bitmap(v=vs.110).aspx
int main() {
cout << "我們要測試圖檔:lena\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << "H=" << H << "\nW=" << W<<endl;
Bitmap im2(W,H );
for (int x = 0; x < W; x++) {
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color pp2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, pp2);
}
}
im2.Save("lena_C.png");
system("Pause");
return 0;
}

b10533075 陳詔瑋 提到...

#include
#include
using namespace std;
#using
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

b10533029 游淑娥 提到...

#include
#include
using namespace std;
#using
using namespace System::Drawing;
int main()
{
cout << "喔喔喔!!!\"ooo\"!\n";
Bitmap im("000.jpg");
int W = im.Width;
int H = im.Height;
cout << W << "/"<< H << endl;
Bitmap im2(W,H);
for (int x = 0; x < W; x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(R,0,B);
im2.SetPixel(x, y, p2);
}
im2.Save("000_0.JPG");
system("Pause");
return 0;
}

B10533076 姜國傑 提到...

#include
#include

using namespace std;

#using
using namespace System::Drawing;
int main()
{
cout << "我們要測試圖檔\"Lena\"!\n";
Bitmap im("lena.jpg");
int W = im.Width;
int H = im.Height;
cout << W << " " << H << endl;
Bitmap im2(W, H);
for(int x=0;x<W;x++)
for (int y = 0; y < H; y++) {
Color pp = im.GetPixel(x, y);
int R = pp.R;
int G = pp.G;
int B = pp.B;
Color p2 = Color::FromArgb(0, G, B);
im2.SetPixel(x, y, p2);
}
im2.Save("lena_Z.png");
system("Pause");
return 0;
}

Related Posts Plugin for WordPress, Blogger...

熱門文章