ImageData.createGradientBand

Creates an ImageData containing one band's worth of a gradient filled block. If <code>vertical</code> is true, the band must be tiled horizontally to fill a region, otherwise it must be tiled vertically.

@param width the width of the region to be filled @param height the height of the region to be filled @param vertical if true sweeps from top to bottom, else sweeps from left to right @param fromRGB the color to start with @param toRGB the color to end with @param redBits the number of significant red bits, 0 for palette modes @param greenBits the number of significant green bits, 0 for palette modes @param blueBits the number of significant blue bits, 0 for palette modes @return the new ImageData

class ImageData
static
createGradientBand

Meta