Intro
Intro
INTRODUCTION
TO IMAGE USING
C#
// Load an image
Bitmap bitmap = new Bitmap("image.jpg");
// pixel manipulation
// Set every third value to 255. A 24bpp bitmap will look red.
for (int counter = 2; counter < rgbValues.Length; counter += 3)
rgbValues[counter] = 255;
// Copy the RGB values back to the bitmap
System.Runtime.InteropServices.Marshal.Copy(rgbValues, 0, ptr, bytes);
“ Which of the two methods
do you think is better, and
why? "
Displaying the Image