comparison dwt/graphics/ImageData.d @ 246:fd9c62a2998e

Updater SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Tue, 01 Jul 2008 10:15:59 +0200
parents 36f5cb12e1a2
children
comparison
equal deleted inserted replaced
245:d8c3d4a4f2b0 246:fd9c62a2998e
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
39 * for animation. 39 * for animation.
40 * </p> 40 * </p>
41 * 41 *
42 * @see Image 42 * @see Image
43 * @see ImageLoader 43 * @see ImageLoader
44 * @see <a href="http://www.eclipse.org/swt/snippets/#image">ImageData snippets</a>
45 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ImageAnalyzer</a>
46 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
44 */ 47 */
45 48
46 public final class ImageData : CloneableCompatibility { 49 public final class ImageData : CloneableCompatibility {
47 50
48 /** 51 /**
599 } 602 }
600 603
601 /** 604 /**
602 * Returns the alpha value at offset <code>x</code> in 605 * Returns the alpha value at offset <code>x</code> in
603 * scanline <code>y</code> in the receiver's alpha data. 606 * scanline <code>y</code> in the receiver's alpha data.
607 * The alpha value is between 0 (transparent) and
608 * 255 (opaque).
604 * 609 *
605 * @param x the x coordinate of the pixel to get the alpha value of 610 * @param x the x coordinate of the pixel to get the alpha value of
606 * @param y the y coordinate of the pixel to get the alpha value of 611 * @param y the y coordinate of the pixel to get the alpha value of
607 * @return the alpha value at the given coordinates 612 * @return the alpha value at the given coordinates
608 * 613 *
618 } 623 }
619 624
620 /** 625 /**
621 * Returns <code>getWidth</code> alpha values starting at offset 626 * Returns <code>getWidth</code> alpha values starting at offset
622 * <code>x</code> in scanline <code>y</code> in the receiver's alpha 627 * <code>x</code> in scanline <code>y</code> in the receiver's alpha
623 * data starting at <code>startIndex</code>. 628 * data starting at <code>startIndex</code>. The alpha values
629 * are unsigned, between <code>(byte)0</code> (transparent) and
630 * <code>(byte)255</code> (opaque).
624 * 631 *
625 * @param x the x position of the pixel to begin getting alpha values 632 * @param x the x position of the pixel to begin getting alpha values
626 * @param y the y position of the pixel to begin getting alpha values 633 * @param y the y position of the pixel to begin getting alpha values
627 * @param getWidth the width of the data to get 634 * @param getWidth the width of the data to get
628 * @param alphas the buffer in which to put the alpha values 635 * @param alphas the buffer in which to put the alpha values
1172 } 1179 }
1173 1180
1174 /** 1181 /**
1175 * Sets the alpha value at offset <code>x</code> in 1182 * Sets the alpha value at offset <code>x</code> in
1176 * scanline <code>y</code> in the receiver's alpha data. 1183 * scanline <code>y</code> in the receiver's alpha data.
1184 * The alpha value must be between 0 (transparent)
1185 * and 255 (opaque).
1177 * 1186 *
1178 * @param x the x coordinate of the alpha value to set 1187 * @param x the x coordinate of the alpha value to set
1179 * @param y the y coordinate of the alpha value to set 1188 * @param y the y coordinate of the alpha value to set
1180 * @param alpha the value to set the alpha to 1189 * @param alpha the value to set the alpha to
1181 * 1190 *
1193 1202
1194 /** 1203 /**
1195 * Sets the alpha values starting at offset <code>x</code> in 1204 * Sets the alpha values starting at offset <code>x</code> in
1196 * scanline <code>y</code> in the receiver's alpha data to the 1205 * scanline <code>y</code> in the receiver's alpha data to the
1197 * values from the array <code>alphas</code> starting at 1206 * values from the array <code>alphas</code> starting at
1198 * <code>startIndex</code>. 1207 * <code>startIndex</code>. The alpha values must be between
1208 * <code>(byte)0</code> (transparent) and <code>(byte)255</code> (opaque)
1199 * 1209 *
1200 * @param x the x coordinate of the pixel to being setting the alpha values 1210 * @param x the x coordinate of the pixel to being setting the alpha values
1201 * @param y the y coordinate of the pixel to being setting the alpha values 1211 * @param y the y coordinate of the pixel to being setting the alpha values
1202 * @param putWidth the width of the alpha values to set 1212 * @param putWidth the width of the alpha values to set
1203 * @param alphas the alpha values to set 1213 * @param alphas the alpha values to set