writableraster.html
来自「API資料大全」· HTML 代码 · 共 942 行 · 第 1/4 页
HTML
942 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:34:16 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class WritableRaster</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/WritableRaster.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/awt/image/SinglePixelPackedSampleModel.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="WritableRaster.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_java.awt.image.Raster">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.awt.image</FONT><BR>Class WritableRaster</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../../../java/awt/image/Raster.html">java.awt.image.Raster</A> | +--<B>java.awt.image.WritableRaster</B></PRE><HR><DL><DT>public class <B>WritableRaster</B><DT>extends <A HREF="../../../java/awt/image/Raster.html">Raster</A></DL><P>This class extends Raster to provide pixel writing capabilities. Refer to the class comment for Raster for descriptions of how a Raster stores pixels. <p> The constructors of this class are protected. To instantiate a WritableRaster, use one of the createWritableRaster factory methods in the Raster class.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_java.awt.image.Raster"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class java.awt.image.<A HREF="../../../java/awt/image/Raster.html">Raster</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/Raster.html#dataBuffer">dataBuffer</A>, <A HREF="../../../java/awt/image/Raster.html#height">height</A>, <A HREF="../../../java/awt/image/Raster.html#minX">minX</A>, <A HREF="../../../java/awt/image/Raster.html#minY">minY</A>, <A HREF="../../../java/awt/image/Raster.html#numBands">numBands</A>, <A HREF="../../../java/awt/image/Raster.html#numDataElements">numDataElements</A>, <A HREF="../../../java/awt/image/Raster.html#parent">parent</A>, <A HREF="../../../java/awt/image/Raster.html#sampleModel">sampleModel</A>, <A HREF="../../../java/awt/image/Raster.html#sampleModelTranslateX">sampleModelTranslateX</A>, <A HREF="../../../java/awt/image/Raster.html#sampleModelTranslateY">sampleModelTranslateY</A>, <A HREF="../../../java/awt/image/Raster.html#width">width</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#WritableRaster(java.awt.image.SampleModel, java.awt.image.DataBuffer, java.awt.Point)">WritableRaster</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sampleModel, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> dataBuffer, <A HREF="../../../java/awt/Point.html">Point</A> origin)</CODE><BR> Constructs a WritableRaster with the given SampleModel and DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#WritableRaster(java.awt.image.SampleModel, java.awt.image.DataBuffer, java.awt.Rectangle, java.awt.Point, java.awt.image.WritableRaster)">WritableRaster</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sampleModel, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> dataBuffer, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> aRegion, <A HREF="../../../java/awt/Point.html">Point</A> sampleModelTranslate, <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> parent)</CODE><BR> Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#WritableRaster(java.awt.image.SampleModel, java.awt.Point)">WritableRaster</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sampleModel, <A HREF="../../../java/awt/Point.html">Point</A> origin)</CODE><BR> Constructs a WritableRaster with the given SampleModel.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#createWritableChild(int, int, int, int, int, int, int[])">createWritableChild</A></B>(int parentX, int parentY, int w, int h, int childMinX, int childMinY, int[] bandList)</CODE><BR> Returns a new WritableRaster which shares all or part of this WritableRaster's DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#createWritableTranslatedChild(int, int)">createWritableTranslatedChild</A></B>(int childMinX, int childMinY)</CODE><BR> Create a WritableRaster with the same size, SampleModel and DataBuffer as this one, but with a different location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/WritableRaster.html#getWritableParent()">getWritableParent</A></B>()</CODE><BR> Returns the parent WritableRaster (if any) of this WritableRaster, or else null.</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><A HREF="../../../java/awt/image/WritableRaster.html#setDataElements(int, int, int, int, java.lang.Object)">setDataElements</A></B>(int x, int y, int w, int h, <A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Sets the data for a rectangle of pixels from a primitive array of type TransferType.</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><A HREF="../../../java/awt/image/WritableRaster.html#setDataElements(int, int, java.lang.Object)">setDataElements</A></B>(int x, int y, <A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Sets the data for a single pixel from a primitive array of type TransferType.</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><A HREF="../../../java/awt/image/WritableRaster.html#setDataElements(int, int, java.awt.image.Raster)">setDataElements</A></B>(int x, int y, <A HREF="../../../java/awt/image/Raster.html">Raster</A> inRaster)</CODE><BR> Sets the data for a rectangle of pixels from an input Raster.</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><A HREF="../../../java/awt/image/WritableRaster.html#setPixel(int, int, double[])">setPixel</A></B>(int x, int y, double[] dArray)</CODE><BR> Sets a pixel in the DataBuffer using a double array of samples for input.</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><A HREF="../../../java/awt/image/WritableRaster.html#setPixel(int, int, float[])">setPixel</A></B>(int x, int y, float[] fArray)</CODE><BR> Sets a pixel in the DataBuffer using a float array of samples for input.</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?