TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
zozo ahmed
NA
18
16k
display image in picture box using array of double
Jan 7 2014 2:47 PM
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;
Reply
Answers (
1
)
Get loggedin user in all application
the read() method doesn,t work with multiple tables in sql d