10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Steen Pedersen
2k
11
513
Faster version of SetPixel
Jun 20 2020 3:55 AM
Im not even sure this question is in the right category.
I really need a faster version of this function, and Im too nooby to transfer the online examples into my code:
void
LayerShow (Color[,] layer)
// Shows a layer in the panel.
{
for
(
int
y = 0; y < CanvasDimY; y++)
{
for
(
int
x = 0; x < CanvasDimX; x++)
{
image.SetPixel(x, y, layer[x, y]);
}
}
PanelCanvas.BackgroundImage = image;
PanelCanvas.Refresh();
}
Reply
Answers (
2
)
How to set the orientation in label control on runtime?
How to use using statements in powershell