Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
display image in picture box using array of double
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
zozo ahmed
10y
1.4k
1
Reply
I write This code for display Y1 in pictureBox but when I run program the picture box is empty not display picture,what is error or what method to display image in picture box in c# ??
byte []R = new byte[width, height];//R,G,B arrays not empty it contain data
byte []G = new byte[width, height];
byte []B = new byte[width, height];
Bitmap bmp4 = new Bitmap(width, height);
Int32 zz;
for (int x = 0; x < width; x++)
for (int y = 0; y < height; y++)
{
Y1[x, y] = (0.39 * R[x,y]) + (0.59 * G[x,y]) + (0.12 * B[x,y]);
zz = Convert.ToInt32(Y1[x, y]);
bmp4.SetPixel(x, y, Color.FromArgb(zz));
}
pictureBox6.Image=bmp4;
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Get loggedin user in all application
the read() method doesn,t work with multiple tables in sql d