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>&nbsp;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>&nbsp;trigger,          <A HREF="../../../java/awt/Cursor.html">Cursor</A>&nbsp;dragCursor,          <A HREF="../../../java/awt/Image.html">Image</A>&nbsp;dragImage,          <A HREF="../../../java/awt/Point.html">Point</A>&nbsp;dragOffset,          <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A>&nbsp;transferable,          <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A>&nbsp;dsl)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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&nbsp;dscp,                        <A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A>&nbsp;dgl,                        <A HREF="../../../java/awt/Cursor.html">Cursor</A>&nbsp;dragCursor,                        <A HREF="../../../java/awt/Image.html">Image</A>&nbsp;dragImage,                        <A HREF="../../../java/awt/Point.html">Point</A>&nbsp;imageOffset,                        <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A>&nbsp;t,                        <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A>&nbsp;dsl)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;dragCursor,          <A HREF="../../../java/awt/Image.html">Image</A>&nbsp;dragImage,          <A HREF="../../../java/awt/Point.html">Point</A>&nbsp;imageOffset,          <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A>&nbsp;transferable,          <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A>&nbsp;dsl)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;dscp,                  <A HREF="../../../java/awt/dnd/DragGestureEvent.html">DragGestureEvent</A>&nbsp;trigger,                  <A HREF="../../../java/awt/Cursor.html">Cursor</A>&nbsp;dragCursor,                  <A HREF="../../../java/awt/Image.html">Image</A>&nbsp;dragImage,                  <A HREF="../../../java/awt/Point.html">Point</A>&nbsp;offset,                  <A HREF="../../../java/awt/datatransfer/Transferable.html">Transferable</A>&nbsp;t,                  <A HREF="../../../java/awt/dnd/DragSourceListener.html">DragSourceListener</A>&nbsp;dsl)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;<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>&nbsp;image,                      int&nbsp;alignment)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;image,                      int&nbsp;alignment,                      float&nbsp;originX,                      float&nbsp;originY)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>ImageGraphicAttribute</code> from the specified <code>Image</code>.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;inputLocale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an icon for the corresponding input method.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The <code>BufferedImage</code> subclass describes an <CODE>Image</CODE> with an accessible buffer of image data.</TD></TR></TABLE>&nbsp;<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>&nbsp;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>&nbsp;img,            int&nbsp;infoflags,            int&nbsp;x,            int&nbsp;y,            int&nbsp;width,            int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is called when information about an image which was previously requested using an asynchronous interface becomes available.</TD></TR></TABLE>&nbsp;<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>&nbsp;img,             int&nbsp;x,             int&nbsp;y,             int&nbsp;w,             int&nbsp;h,             int[]&nbsp;pix,             int&nbsp;off,             int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;img,             int&nbsp;x,             int&nbsp;y,             int&nbsp;w,             int&nbsp;h,             boolean&nbsp;forceRGB)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;<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&nbsp;iconKind)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;iconKind)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Claim there are no icons available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;resourceName)</CODE><BR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?