image.html
来自「API資料大全」· HTML 代码 · 共 1,096 行 · 第 1/4 页
HTML
1,096 行
<code>Cursor</code> to use, the <code>Image</code> to drag, the offset of the <code>Image</code> origin from the hotspot of the <code>Cursor</code> at the instant of the trigger, the <code>Transferable</code> subject data of the drag, the <code>DragSourceListener</code>, and the <code>FlavorMap</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#startDrag(java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">startDrag</A></B>(<A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> trigger, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> dragOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> transferable, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Start a drag, given the <code>DragGestureEvent</code> that initiated the drag, the initial <code>Cursor</code> to use, the <code>Image</code> to drag, the offset of the <code>Image</code> origin from the hotspot of the <code>Cursor</code> at the instant of the trigger, the subject data of the drag, and the <code>DragSourceListener</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/dnd/DragSourceContext.html">DragSourceContext</A></CODE></FONT></TD><TD><CODE><B>DragSource.</B><B><A HREF="../../../java/awt/dnd/DragSource.html#createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer, java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">createDragSourceContext</A></B>(java.awt.dnd.peer.DragSourceContextPeer dscp, <A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> dgl, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> imageOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> t, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Create the <code>DragSourceContext</code> to handle this drag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DragGestureEvent.</B><B><A HREF="../../../java/awt/dnd/DragGestureEvent.html#startDrag(java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">startDrag</A></B>(<A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> imageOffset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> transferable, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Start the drag given the initial <code>Cursor</code> to display, a drag <code>Image</code>, the offset of the <code>Image</code>, the <code>Transferable</code> object, and the <code>DragSourceListener</code> to use.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/dnd/package-summary.html">java.awt.dnd</A> with parameters of type <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/dnd/DragSourceContext.html#DragSourceContext(java.awt.dnd.peer.DragSourceContextPeer, java.awt.dnd.DragGestureEvent, java.awt.Cursor, java.awt.Image, java.awt.Point, java.awt.datatransfer.Transferable, java.awt.dnd.DragSourceListener)">DragSourceContext</A></B>(java.awt.dnd.peer.DragSourceContextPeer dscp, <A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A> trigger, <A HREF="../../../java/awt/Cursor.html">Cursor</A> dragCursor, <A HREF="../../../java/awt/Image.html">Image</A> dragImage, <A HREF="../../../java/awt/Point.html">Point</A> offset, <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A> t, <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A> dsl)</CODE><BR> Called from <code>DragSource</code>, this constructor creates a new <code>DragSourceContext</code> given the <code>DragSourceContextPeer</code> for this Drag, the <code>DragGestureEvent</code> that triggered the Drag, the initial <code>Cursor</code> to use for the Drag, an (optional) <code>Image</code> to display while the Drag is taking place, the offset of the <code>Image</code> origin from the hotspot at the instant of the triggering event, the <code>Transferable</code> subject data, and the <code>DragSourceListener</code> to use during the Drag and Drop operation.</TD></TR></TABLE> <P><A NAME="java.awt.font"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Image.html">Image</A> in <A HREF="../../../java/awt/font/package-summary.html">java.awt.font</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/font/package-summary.html">java.awt.font</A> with parameters of type <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/font/ImageGraphicAttribute.html#ImageGraphicAttribute(java.awt.Image, int)">ImageGraphicAttribute</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> image, int alignment)</CODE><BR> Constucts an <code>ImageGraphicAttribute</code> from the specified <A HREF="../../../java/awt/Image.html"><CODE>Image</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/font/ImageGraphicAttribute.html#ImageGraphicAttribute(java.awt.Image, int, float, float)">ImageGraphicAttribute</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> image, int alignment, float originX, float originY)</CODE><BR> Constructs an <code>ImageGraphicAttribute</code> from the specified <code>Image</code>.</TD></TR></TABLE> <P><A NAME="java.awt.im.spi"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Image.html">Image</A> in <A HREF="../../../java/awt/im/spi/package-summary.html">java.awt.im.spi</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/im/spi/package-summary.html">java.awt.im.spi</A> that return <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B>InputMethodDescriptor.</B><B><A HREF="../../../java/awt/im/spi/InputMethodDescriptor.html#getInputMethodIcon(java.util.Locale)">getInputMethodIcon</A></B>(<A HREF="../../../java/util/Locale.html">Locale</A> inputLocale)</CODE><BR> Returns an icon for the corresponding input method.</TD></TR></TABLE> <P><A NAME="java.awt.image"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Image.html">Image</A> in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Subclasses of <A HREF="../../../java/awt/Image.html">Image</A> in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A></B></CODE><BR> The <code>BufferedImage</code> subclass describes an <CODE>Image</CODE> with an accessible buffer of image data.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A> with parameters of type <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>ImageObserver.</B><B><A HREF="../../../java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)">imageUpdate</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int infoflags, int x, int y, int width, int height)</CODE><BR> This method is called when information about an image which was previously requested using an asynchronous interface becomes available.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A> with parameters of type <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/PixelGrabber.html#PixelGrabber(java.awt.Image, int, int, int, int, int[], int, int)">PixelGrabber</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int x, int y, int w, int h, int[] pix, int off, int scansize)</CODE><BR> Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image into the given array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/PixelGrabber.html#PixelGrabber(java.awt.Image, int, int, int, int, boolean)">PixelGrabber</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int x, int y, int w, int h, boolean forceRGB)</CODE><BR> Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image.</TD></TR></TABLE> <P><A NAME="java.beans"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Image.html">Image</A> in <A HREF="../../../java/beans/package-summary.html">java.beans</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/beans/package-summary.html">java.beans</A> that return <A HREF="../../../java/awt/Image.html">Image</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B>BeanInfo.</B><B><A HREF="../../../java/beans/BeanInfo.html#getIcon(int)">getIcon</A></B>(int iconKind)</CODE><BR> This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B>SimpleBeanInfo.</B><B><A HREF="../../../java/beans/SimpleBeanInfo.html#getIcon(int)">getIcon</A></B>(int iconKind)</CODE><BR> Claim there are no icons available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B>SimpleBeanInfo.</B><B><A HREF="../../../java/beans/SimpleBeanInfo.html#loadImage(java.lang.String)">loadImage</A></B>(<A HREF="../../../java/lang/String.html">String</A> resourceName)</CODE><BR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?