CSHARPWINDOWSFORM Telegram 231
برمجة تطبيقات الويندوز C# Programming
ولكي تقوم بعمل مثل هذا التأثير على الصور
قم بإضافة هذه الاسطر الى الكود

r = 255 - r;
g = 255 - g;
b = 255 - b;

وايضاً قم بالتعديل في الدالة التالية

RedBmp.SetPixel(x, y, Color.FromArgb(a, r, g, b));



كود هذا الشكل


Bitmap bmp = new Bitmap(pictureBox1.Image);
int width = bmp.Width;
int height = bmp.Height;

Bitmap RedBmp = new Bitmap(bmp);

for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
//get pixel value
Color p = bmp.GetPixel(x, y);

//extract ARGB value from p
int a = p.A;
int r = p.R;
int g = p.G;
int b = p.B;




r = 255 - r;
g = 255 - g;
b = 255 - b;
//set red image pixel
RedBmp.SetPixel(x, y, Color.FromArgb(a, r, g, b));
}
}
pictureBox2.Image = RedBmp;
👍1



tgoop.com/CsharpWindowsForm/231
Create:
Last Update:

قم بإضافة هذه الاسطر الى الكود

r = 255 - r;
g = 255 - g;
b = 255 - b;

وايضاً قم بالتعديل في الدالة التالية

RedBmp.SetPixel(x, y, Color.FromArgb(a, r, g, b));



كود هذا الشكل


Bitmap bmp = new Bitmap(pictureBox1.Image);
int width = bmp.Width;
int height = bmp.Height;

Bitmap RedBmp = new Bitmap(bmp);

for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
//get pixel value
Color p = bmp.GetPixel(x, y);

//extract ARGB value from p
int a = p.A;
int r = p.R;
int g = p.G;
int b = p.B;




r = 255 - r;
g = 255 - g;
b = 255 - b;
//set red image pixel
RedBmp.SetPixel(x, y, Color.FromArgb(a, r, g, b));
}
}
pictureBox2.Image = RedBmp;

BY برمجة تطبيقات الويندوز C# Programming




Share with your friend now:
tgoop.com/CsharpWindowsForm/231

View MORE
Open in Telegram


Telegram News

Date: |

Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots. But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." 3How to create a Telegram channel? During the meeting with TSE Minister Edson Fachin, Perekopsky also mentioned the TSE channel on the platform as one of the firm's key success stories. Launched as part of the company's commitments to tackle the spread of fake news in Brazil, the verified channel has attracted more than 184,000 members in less than a month. Find your optimal posting schedule and stick to it. The peak posting times include 8 am, 6 pm, and 8 pm on social media. Try to publish serious stuff in the morning and leave less demanding content later in the day.
from us


Telegram برمجة تطبيقات الويندوز C# Programming
FROM American