

with FastPix GetPixel and SetPixel: 53 - 103 milliseconds.ģ.
#Convert image to black and white code
with Bitmap.GetPixel and SetPixel, based on your code from post #1: 663 - 680 milliseconds.Ģ. Hope_Veda, I timed 3 different ways to make your Image black-and-white on my computer:ġ. The idea is that by putting the image processing loop inside a Using-End Using block, it's easier to concentrate on optimizing the actual image processing code. in the Code Project) but FastPix is as far as I know unique in unlocking the image in the Dispose code. It's not hard to find other examples of classes that do a similar job (e.g.

#Convert image to black and white 32 bit
FastPix is indeed based on LockBits, but it simplifies the code by limiting its use to 32 bit bitmaps. I have found that locking the whole image can often be slow things down though and it is faster to process the image in parts when working on large images. I've never used BB's FastPix, but I'm guessing that it is based on using Lockbits to lock the whole image in memory and should be fairly fast. To reset all Color Adjustments, click Reset at the bottom of the Color Adjustments pane.How large of an image are you processing? Show Split Comparison: Option ⌥ – click the Show Original button, press Control ⌃ + C on your keyboard, or force click the canvas. Show Original: Click the Show Original button or press Control ⌃ + M on your keyboard to see what the image looks like without any color adjustments. Tip: A good rule of thumb is to keep the total percentage of the red, green, and blue channels at or below 100 percent to prevent blowing out the highlights in your image. To bring back some color to your image, drag the Intensity slider to the left. You can also enter a percentage value from –200% to 200%.Ĥ. Press and hold the Option ⌥ key before dragging if you’d like to extend the range of the Tone slider beyond 100%. To increase the brightness of saturated colors from the original image in your new black and white image, drag the Tone slider to the right, or to the left to decrease them.

You can also enter a percentage value from –100% to 100%.ģ. To increase one channel's contribution to the final black and white image, drag a slider to the right to decrease it, drag to the left. Note: If the adjustment isn't visible, you can turn it on from the Customize menu at the bottom of the Color Adjustments pane.Ģ.
