Table Of Contents

Previous topic

ImageView

Next topic

infoframe

This Page

phoenix_title imageutils

function_summary Functions Summary

grayOut Convert the given image (in place) to a grayed-out
makeGray Make a pixel grayed-out. If the pixel
stepColour stepColour is a utility function that simply darkens or lightens a

Functions



grayOut(anImage)

Convert the given image (in place) to a grayed-out version, appropriate for a ‘disabled’ appearance.



makeGray((r, g, b), factor, maskColor)

Make a pixel grayed-out. If the pixel matches the maskColor, it won’t be changed.



stepColour(c, step)

stepColour is a utility function that simply darkens or lightens a color, based on the specified step value. A step of 0 is completely black and a step of 200 is totally white, and 100 results in the same color as was passed in.