Lines Matching refs:offset

276      * @param start     the starting offset of the first color component
312 * @param start the starting offset of the first color component
389 * @param start the starting offset of the first color component
455 * @param start the starting offset of the first color component
1072 * <code>offset + getNumComponents()</code> elements.
1077 * at <code>offset</code> even if the array is allocated by this method.
1081 * starting at <code>offset</code>.
1085 * @param offset the offset into the <code>components</code> array at
1088 * specified pixel starting at the specified offset.
1092 public int[] getComponents(int pixel, int[] components, int offset) {
1094 components = new int[offset+numComponents];
1098 components[offset+0] = getRed(pixel);
1099 components[offset+1] = getGreen(pixel);
1100 components[offset+2] = getBlue(pixel);
1101 if (supportsAlpha && (components.length-offset) > 3) {
1102 components[offset+3] = getAlpha(pixel);
1120 * <code>offset + getNumComponents()</code> elements.
1125 * array starting at <code>offset</code> even if the array is
1130 * and alpha components starting at <code>offset</code>.
1140 * @param offset the index into the <code>components</code> array at
1144 * specified pixel starting at the specified offset.
1150 * and alpha components starting at <code>offset</code>
1158 public int[] getComponents(Object pixel, int[] components, int offset) {
1177 return getComponents(intpixel, components, offset);
1187 * at <code>offset</code>. Since
1193 * @param offset the index into <code>components</code> at which to
1200 * <code>offset</code>
1204 public int getDataElement(int[] components, int offset) {
1205 int rgb = (components[offset+0]<<16)
1206 | (components[offset+1]<<8) | (components[offset+2]);
1208 rgb |= (components[offset+3]<<24);
1243 * color and alpha components starting at <code>offset</code>.
1259 * @param offset the index into <code>components</code> at which to
1271 * components starting at <code>offset</code>
1277 public Object getDataElements(int[] components, int offset, Object pixel) {
1278 int rgb = (components[offset+0]<<16) | (components[offset+1]<<8)
1279 | (components[offset+2]);
1281 rgb |= (components[offset+3]<<24);