DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!--NewPage--> |
| 3 | <HTML> |
| 4 | <HEAD> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 5 | <TITLE> |
| 6 | TJTransform |
| 7 | </TITLE> |
| 8 | |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 9 | |
| 10 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> |
| 11 | |
| 12 | <SCRIPT type="text/javascript"> |
| 13 | function windowTitle() |
| 14 | { |
| 15 | if (location.href.indexOf('is-external=true') == -1) { |
| 16 | parent.document.title="TJTransform"; |
| 17 | } |
| 18 | } |
| 19 | </SCRIPT> |
| 20 | <NOSCRIPT> |
| 21 | </NOSCRIPT> |
| 22 | |
| 23 | </HEAD> |
| 24 | |
| 25 | <BODY BGCOLOR="white" onload="windowTitle();"> |
| 26 | <HR> |
| 27 | |
| 28 | |
| 29 | <!-- ========= START OF TOP NAVBAR ======= --> |
| 30 | <A NAME="navbar_top"><!-- --></A> |
| 31 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| 32 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 33 | <TR> |
| 34 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 35 | <A NAME="navbar_top_firstrow"><!-- --></A> |
| 36 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 37 | <TR ALIGN="center" VALIGN="top"> |
| 38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 39 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 44 | </TR> |
| 45 | </TABLE> |
| 46 | </TD> |
| 47 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 48 | </EM> |
| 49 | </TD> |
| 50 | </TR> |
| 51 | |
| 52 | <TR> |
| 53 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
DRC | b2f9415 | 2011-04-02 02:09:03 +0000 | [diff] [blame] | 54 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 55 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD> |
| 56 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 57 | <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top"><B>FRAMES</B></A> |
| 58 | <A HREF="TJTransform.html" target="_top"><B>NO FRAMES</B></A> |
| 59 | <SCRIPT type="text/javascript"> |
| 60 | <!-- |
| 61 | if(window==top) { |
| 62 | document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 63 | } |
| 64 | //--> |
| 65 | </SCRIPT> |
| 66 | <NOSCRIPT> |
| 67 | <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 68 | </NOSCRIPT> |
| 69 | |
| 70 | |
| 71 | </FONT></TD> |
| 72 | </TR> |
| 73 | <TR> |
| 74 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 75 | SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.awt.Rectangle">METHOD</A></FONT></TD> |
| 76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 77 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD> |
| 78 | </TR> |
| 79 | </TABLE> |
| 80 | <A NAME="skip-navbar_top"></A> |
| 81 | <!-- ========= END OF TOP NAVBAR ========= --> |
| 82 | |
| 83 | <HR> |
| 84 | <!-- ======== START OF CLASS DATA ======== --> |
| 85 | <H2> |
| 86 | <FONT SIZE="-1"> |
| 87 | org.libjpegturbo.turbojpeg</FONT> |
| 88 | <BR> |
| 89 | Class TJTransform</H2> |
| 90 | <PRE> |
| 91 | java.lang.Object |
| 92 | <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.geom.RectangularShape |
| 93 | <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.geom.Rectangle2D |
| 94 | <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Rectangle |
| 95 | <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.libjpegturbo.turbojpeg.TJTransform</B> |
| 96 | </PRE> |
| 97 | <DL> |
| 98 | <DT><B>All Implemented Interfaces:</B> <DD>java.awt.Shape, java.io.Serializable, java.lang.Cloneable</DD> |
| 99 | </DL> |
| 100 | <HR> |
| 101 | <DL> |
| 102 | <DT><PRE>public class <B>TJTransform</B><DT>extends java.awt.Rectangle</DL> |
| 103 | </PRE> |
| 104 | |
| 105 | <P> |
| 106 | Lossless transform parameters |
| 107 | <P> |
| 108 | |
| 109 | <P> |
| 110 | <DL> |
| 111 | <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</A></DL> |
| 112 | <HR> |
| 113 | |
| 114 | <P> |
| 115 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
| 116 | |
| 117 | <A NAME="nested_class_summary"><!-- --></A> |
| 118 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 119 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 120 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 121 | <B>Nested Class Summary</B></FONT></TH> |
| 122 | </TR> |
| 123 | </TABLE> |
| 124 | <A NAME="nested_classes_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A> |
| 125 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 126 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 127 | <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D</B></TH> |
| 128 | </TR> |
| 129 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 130 | <TD><CODE>java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float</CODE></TD> |
| 131 | </TR> |
| 132 | </TABLE> |
| 133 | |
| 134 | <!-- =========== FIELD SUMMARY =========== --> |
| 135 | |
| 136 | <A NAME="field_summary"><!-- --></A> |
| 137 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 138 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 139 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 140 | <B>Field Summary</B></FONT></TH> |
| 141 | </TR> |
| 142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 144 | <CODE> <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A></CODE></FONT></TD> |
| 145 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#cf">cf</A></B></CODE> |
| 146 | |
| 147 | <BR> |
| 148 | Custom filter instance</TD> |
| 149 | </TR> |
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 152 | <CODE>static int</CODE></FONT></TD> |
| 153 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#NUMOP">NUMOP</A></B></CODE> |
| 154 | |
| 155 | <BR> |
| 156 | The number of lossless transform operations</TD> |
| 157 | </TR> |
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 159 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 160 | <CODE> int</CODE></FONT></TD> |
| 161 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#op">op</A></B></CODE> |
| 162 | |
| 163 | <BR> |
| 164 | Transform operation (one of <code>OP_*</code>)</TD> |
| 165 | </TR> |
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 168 | <CODE>static int</CODE></FONT></TD> |
| 169 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_HFLIP">OP_HFLIP</A></B></CODE> |
| 170 | |
| 171 | <BR> |
| 172 | Flip (mirror) image horizontally.</TD> |
| 173 | </TR> |
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 176 | <CODE>static int</CODE></FONT></TD> |
| 177 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_NONE">OP_NONE</A></B></CODE> |
| 178 | |
| 179 | <BR> |
| 180 | Do not transform the position of the image pixels.</TD> |
| 181 | </TR> |
| 182 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 183 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 184 | <CODE>static int</CODE></FONT></TD> |
| 185 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT180">OP_ROT180</A></B></CODE> |
| 186 | |
| 187 | <BR> |
| 188 | Rotate image 180 degrees.</TD> |
| 189 | </TR> |
| 190 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 191 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 192 | <CODE>static int</CODE></FONT></TD> |
| 193 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT270">OP_ROT270</A></B></CODE> |
| 194 | |
| 195 | <BR> |
| 196 | Rotate image counter-clockwise by 90 degrees.</TD> |
| 197 | </TR> |
| 198 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 200 | <CODE>static int</CODE></FONT></TD> |
| 201 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT90">OP_ROT90</A></B></CODE> |
| 202 | |
| 203 | <BR> |
| 204 | Rotate image clockwise by 90 degrees.</TD> |
| 205 | </TR> |
| 206 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 208 | <CODE>static int</CODE></FONT></TD> |
| 209 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSPOSE">OP_TRANSPOSE</A></B></CODE> |
| 210 | |
| 211 | <BR> |
| 212 | Transpose image (flip/mirror along upper left to lower right axis).</TD> |
| 213 | </TR> |
| 214 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 215 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 216 | <CODE>static int</CODE></FONT></TD> |
| 217 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSVERSE">OP_TRANSVERSE</A></B></CODE> |
| 218 | |
| 219 | <BR> |
| 220 | Transverse transpose image (flip/mirror along upper right to lower left |
| 221 | axis).</TD> |
| 222 | </TR> |
| 223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 225 | <CODE>static int</CODE></FONT></TD> |
| 226 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_VFLIP">OP_VFLIP</A></B></CODE> |
| 227 | |
| 228 | <BR> |
| 229 | Flip (mirror) image vertically.</TD> |
| 230 | </TR> |
| 231 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 233 | <CODE>static int</CODE></FONT></TD> |
| 234 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_CROP">OPT_CROP</A></B></CODE> |
| 235 | |
| 236 | <BR> |
| 237 | This option will enable lossless cropping.</TD> |
| 238 | </TR> |
| 239 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 241 | <CODE>static int</CODE></FONT></TD> |
| 242 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_GRAY">OPT_GRAY</A></B></CODE> |
| 243 | |
| 244 | <BR> |
| 245 | This option will discard the color data in the input image and produce |
| 246 | a grayscale output image.</TD> |
| 247 | </TR> |
| 248 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 249 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 250 | <CODE>static int</CODE></FONT></TD> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 251 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_NOOUTPUT">OPT_NOOUTPUT</A></B></CODE> |
| 252 | |
| 253 | <BR> |
| 254 | This option will prevent <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> from outputting a JPEG image for this |
| 255 | particular transform.</TD> |
| 256 | </TR> |
| 257 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 258 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 259 | <CODE>static int</CODE></FONT></TD> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 260 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT">OPT_PERFECT</A></B></CODE> |
| 261 | |
| 262 | <BR> |
| 263 | This option will cause <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> to throw an exception if the transform is not |
| 264 | perfect.</TD> |
| 265 | </TR> |
| 266 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 267 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 268 | <CODE>static int</CODE></FONT></TD> |
| 269 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_TRIM">OPT_TRIM</A></B></CODE> |
| 270 | |
| 271 | <BR> |
| 272 | This option will discard any partial MCU blocks that cannot be |
| 273 | transformed.</TD> |
| 274 | </TR> |
| 275 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 276 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 277 | <CODE> int</CODE></FONT></TD> |
| 278 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#options">options</A></B></CODE> |
| 279 | |
| 280 | <BR> |
| 281 | Transform options (bitwise OR of one or more of <code>OPT_*</code>)</TD> |
| 282 | </TR> |
| 283 | </TABLE> |
| 284 | <A NAME="fields_inherited_from_class_java.awt.Rectangle"><!-- --></A> |
| 285 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 286 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 287 | <TH ALIGN="left"><B>Fields inherited from class java.awt.Rectangle</B></TH> |
| 288 | </TR> |
| 289 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 290 | <TD><CODE>height, width, x, y</CODE></TD> |
| 291 | </TR> |
| 292 | </TABLE> |
| 293 | <A NAME="fields_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A> |
| 294 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 295 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 296 | <TH ALIGN="left"><B>Fields inherited from class java.awt.geom.Rectangle2D</B></TH> |
| 297 | </TR> |
| 298 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 299 | <TD><CODE>OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP</CODE></TD> |
| 300 | </TR> |
| 301 | </TABLE> |
| 302 | |
| 303 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 304 | |
| 305 | <A NAME="constructor_summary"><!-- --></A> |
| 306 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 307 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 308 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 309 | <B>Constructor Summary</B></FONT></TH> |
| 310 | </TR> |
| 311 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 312 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform()">TJTransform</A></B>()</CODE> |
| 313 | |
| 314 | <BR> |
| 315 | Create a new lossless transform instance.</TD> |
| 316 | </TR> |
| 317 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 318 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</A></B>(int x, |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 319 | int y, |
| 320 | int w, |
| 321 | int h, |
| 322 | int op, |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 323 | int options, |
| 324 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)</CODE> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 325 | |
| 326 | <BR> |
| 327 | Create a new lossless transform instance with the given parameters.</TD> |
| 328 | </TR> |
| 329 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 330 | <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</A></B>(java.awt.Rectangle r, |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 331 | int op, |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 332 | int options, |
| 333 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)</CODE> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 334 | |
| 335 | <BR> |
| 336 | Create a new lossless transform instance with the given parameters.</TD> |
| 337 | </TR> |
| 338 | </TABLE> |
| 339 | |
| 340 | <!-- ========== METHOD SUMMARY =========== --> |
| 341 | |
| 342 | <A NAME="method_summary"><!-- --></A> |
| 343 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 344 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 345 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 346 | <B>Method Summary</B></FONT></TH> |
| 347 | </TR> |
| 348 | </TABLE> |
| 349 | <A NAME="methods_inherited_from_class_java.awt.Rectangle"><!-- --></A> |
| 350 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 351 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 352 | <TH ALIGN="left"><B>Methods inherited from class java.awt.Rectangle</B></TH> |
| 353 | </TR> |
| 354 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 355 | <TD><CODE>add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union</CODE></TD> |
| 356 | </TR> |
| 357 | </TABLE> |
| 358 | <A NAME="methods_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A> |
| 359 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 360 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 361 | <TH ALIGN="left"><B>Methods inherited from class java.awt.geom.Rectangle2D</B></TH> |
| 362 | </TR> |
| 363 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 364 | <TD><CODE>add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union</CODE></TD> |
| 365 | </TR> |
| 366 | </TABLE> |
| 367 | <A NAME="methods_inherited_from_class_java.awt.geom.RectangularShape"><!-- --></A> |
| 368 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 369 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 370 | <TH ALIGN="left"><B>Methods inherited from class java.awt.geom.RectangularShape</B></TH> |
| 371 | </TR> |
| 372 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 373 | <TD><CODE>clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal</CODE></TD> |
| 374 | </TR> |
| 375 | </TABLE> |
| 376 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| 377 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 378 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 379 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| 380 | </TR> |
| 381 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 382 | <TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD> |
| 383 | </TR> |
| 384 | </TABLE> |
| 385 | <A NAME="methods_inherited_from_class_java.awt.Shape"><!-- --></A> |
| 386 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 387 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 388 | <TH ALIGN="left"><B>Methods inherited from interface java.awt.Shape</B></TH> |
| 389 | </TR> |
| 390 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
| 391 | <TD><CODE>contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects</CODE></TD> |
| 392 | </TR> |
| 393 | </TABLE> |
| 394 | |
| 395 | <P> |
| 396 | |
| 397 | <!-- ============ FIELD DETAIL =========== --> |
| 398 | |
| 399 | <A NAME="field_detail"><!-- --></A> |
| 400 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 401 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 402 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| 403 | <B>Field Detail</B></FONT></TH> |
| 404 | </TR> |
| 405 | </TABLE> |
| 406 | |
| 407 | <A NAME="NUMOP"><!-- --></A><H3> |
| 408 | NUMOP</H3> |
| 409 | <PRE> |
| 410 | public static final int <B>NUMOP</B></PRE> |
| 411 | <DL> |
| 412 | <DD>The number of lossless transform operations |
| 413 | <P> |
| 414 | <DL> |
| 415 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.NUMOP">Constant Field Values</A></DL> |
| 416 | </DL> |
| 417 | <HR> |
| 418 | |
| 419 | <A NAME="OP_NONE"><!-- --></A><H3> |
| 420 | OP_NONE</H3> |
| 421 | <PRE> |
| 422 | public static final int <B>OP_NONE</B></PRE> |
| 423 | <DL> |
| 424 | <DD>Do not transform the position of the image pixels. |
| 425 | <P> |
| 426 | <DL> |
| 427 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_NONE">Constant Field Values</A></DL> |
| 428 | </DL> |
| 429 | <HR> |
| 430 | |
| 431 | <A NAME="OP_HFLIP"><!-- --></A><H3> |
| 432 | OP_HFLIP</H3> |
| 433 | <PRE> |
| 434 | public static final int <B>OP_HFLIP</B></PRE> |
| 435 | <DL> |
| 436 | <DD>Flip (mirror) image horizontally. This transform is imperfect if there |
| 437 | are any partial MCU blocks on the right edge. |
| 438 | <P> |
| 439 | <DL> |
| 440 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 441 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_HFLIP">Constant Field Values</A></DL> |
| 442 | </DL> |
| 443 | <HR> |
| 444 | |
| 445 | <A NAME="OP_VFLIP"><!-- --></A><H3> |
| 446 | OP_VFLIP</H3> |
| 447 | <PRE> |
| 448 | public static final int <B>OP_VFLIP</B></PRE> |
| 449 | <DL> |
| 450 | <DD>Flip (mirror) image vertically. This transform is imperfect if there are |
| 451 | any partial MCU blocks on the bottom edge. |
| 452 | <P> |
| 453 | <DL> |
| 454 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 455 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_VFLIP">Constant Field Values</A></DL> |
| 456 | </DL> |
| 457 | <HR> |
| 458 | |
| 459 | <A NAME="OP_TRANSPOSE"><!-- --></A><H3> |
| 460 | OP_TRANSPOSE</H3> |
| 461 | <PRE> |
| 462 | public static final int <B>OP_TRANSPOSE</B></PRE> |
| 463 | <DL> |
| 464 | <DD>Transpose image (flip/mirror along upper left to lower right axis). This |
| 465 | transform is always perfect. |
| 466 | <P> |
| 467 | <DL> |
| 468 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 469 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSPOSE">Constant Field Values</A></DL> |
| 470 | </DL> |
| 471 | <HR> |
| 472 | |
| 473 | <A NAME="OP_TRANSVERSE"><!-- --></A><H3> |
| 474 | OP_TRANSVERSE</H3> |
| 475 | <PRE> |
| 476 | public static final int <B>OP_TRANSVERSE</B></PRE> |
| 477 | <DL> |
| 478 | <DD>Transverse transpose image (flip/mirror along upper right to lower left |
| 479 | axis). This transform is imperfect if there are any partial MCU blocks in |
| 480 | the image. |
| 481 | <P> |
| 482 | <DL> |
| 483 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 484 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSVERSE">Constant Field Values</A></DL> |
| 485 | </DL> |
| 486 | <HR> |
| 487 | |
| 488 | <A NAME="OP_ROT90"><!-- --></A><H3> |
| 489 | OP_ROT90</H3> |
| 490 | <PRE> |
| 491 | public static final int <B>OP_ROT90</B></PRE> |
| 492 | <DL> |
| 493 | <DD>Rotate image clockwise by 90 degrees. This transform is imperfect if |
| 494 | there are any partial MCU blocks on the bottom edge. |
| 495 | <P> |
| 496 | <DL> |
| 497 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 498 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT90">Constant Field Values</A></DL> |
| 499 | </DL> |
| 500 | <HR> |
| 501 | |
| 502 | <A NAME="OP_ROT180"><!-- --></A><H3> |
| 503 | OP_ROT180</H3> |
| 504 | <PRE> |
| 505 | public static final int <B>OP_ROT180</B></PRE> |
| 506 | <DL> |
| 507 | <DD>Rotate image 180 degrees. This transform is imperfect if there are any |
| 508 | partial MCU blocks in the image. |
| 509 | <P> |
| 510 | <DL> |
| 511 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 512 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT180">Constant Field Values</A></DL> |
| 513 | </DL> |
| 514 | <HR> |
| 515 | |
| 516 | <A NAME="OP_ROT270"><!-- --></A><H3> |
| 517 | OP_ROT270</H3> |
| 518 | <PRE> |
| 519 | public static final int <B>OP_ROT270</B></PRE> |
| 520 | <DL> |
| 521 | <DD>Rotate image counter-clockwise by 90 degrees. This transform is imperfect |
| 522 | if there are any partial MCU blocks on the right edge. |
| 523 | <P> |
| 524 | <DL> |
| 525 | <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>, |
| 526 | <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT270">Constant Field Values</A></DL> |
| 527 | </DL> |
| 528 | <HR> |
| 529 | |
| 530 | <A NAME="OPT_PERFECT"><!-- --></A><H3> |
| 531 | OPT_PERFECT</H3> |
| 532 | <PRE> |
| 533 | public static final int <B>OPT_PERFECT</B></PRE> |
| 534 | <DL> |
| 535 | <DD>This option will cause <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> to throw an exception if the transform is not |
| 536 | perfect. Lossless transforms operate on MCU blocks, whose size depends on |
| 537 | the level of chrominance subsampling used. If the image's width or height |
| 538 | is not evenly divisible by the MCU block size (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)"><CODE>TJ.getMCUWidth(int)</CODE></A> |
| 539 | and <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><CODE>TJ.getMCUHeight(int)</CODE></A>), then there will be partial MCU blocks on the |
| 540 | right and/or bottom edges. It is not possible to move these partial MCU |
| 541 | blocks to the top or left of the image, so any transform that would |
| 542 | require that is "imperfect." If this option is not specified, then any |
| 543 | partial MCU blocks that cannot be transformed will be left in place, which |
| 544 | will create odd-looking strips on the right or bottom edge of the image. |
| 545 | <P> |
| 546 | <DL> |
| 547 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PERFECT">Constant Field Values</A></DL> |
| 548 | </DL> |
| 549 | <HR> |
| 550 | |
| 551 | <A NAME="OPT_TRIM"><!-- --></A><H3> |
| 552 | OPT_TRIM</H3> |
| 553 | <PRE> |
| 554 | public static final int <B>OPT_TRIM</B></PRE> |
| 555 | <DL> |
| 556 | <DD>This option will discard any partial MCU blocks that cannot be |
| 557 | transformed. |
| 558 | <P> |
| 559 | <DL> |
| 560 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_TRIM">Constant Field Values</A></DL> |
| 561 | </DL> |
| 562 | <HR> |
| 563 | |
| 564 | <A NAME="OPT_CROP"><!-- --></A><H3> |
| 565 | OPT_CROP</H3> |
| 566 | <PRE> |
| 567 | public static final int <B>OPT_CROP</B></PRE> |
| 568 | <DL> |
| 569 | <DD>This option will enable lossless cropping. |
| 570 | <P> |
| 571 | <DL> |
| 572 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_CROP">Constant Field Values</A></DL> |
| 573 | </DL> |
| 574 | <HR> |
| 575 | |
| 576 | <A NAME="OPT_GRAY"><!-- --></A><H3> |
| 577 | OPT_GRAY</H3> |
| 578 | <PRE> |
| 579 | public static final int <B>OPT_GRAY</B></PRE> |
| 580 | <DL> |
| 581 | <DD>This option will discard the color data in the input image and produce |
| 582 | a grayscale output image. |
| 583 | <P> |
| 584 | <DL> |
| 585 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_GRAY">Constant Field Values</A></DL> |
| 586 | </DL> |
| 587 | <HR> |
| 588 | |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 589 | <A NAME="OPT_NOOUTPUT"><!-- --></A><H3> |
| 590 | OPT_NOOUTPUT</H3> |
| 591 | <PRE> |
| 592 | public static final int <B>OPT_NOOUTPUT</B></PRE> |
| 593 | <DL> |
| 594 | <DD>This option will prevent <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> from outputting a JPEG image for this |
| 595 | particular transform. This can be used in conjunction with a custom |
| 596 | filter to capture the transformed DCT coefficients without transcoding |
| 597 | them. |
| 598 | <P> |
| 599 | <DL> |
| 600 | <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_NOOUTPUT">Constant Field Values</A></DL> |
| 601 | </DL> |
| 602 | <HR> |
| 603 | |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 604 | <A NAME="op"><!-- --></A><H3> |
| 605 | op</H3> |
| 606 | <PRE> |
| 607 | public int <B>op</B></PRE> |
| 608 | <DL> |
| 609 | <DD>Transform operation (one of <code>OP_*</code>) |
| 610 | <P> |
| 611 | <DL> |
| 612 | </DL> |
| 613 | </DL> |
| 614 | <HR> |
| 615 | |
| 616 | <A NAME="options"><!-- --></A><H3> |
| 617 | options</H3> |
| 618 | <PRE> |
| 619 | public int <B>options</B></PRE> |
| 620 | <DL> |
| 621 | <DD>Transform options (bitwise OR of one or more of <code>OPT_*</code>) |
| 622 | <P> |
| 623 | <DL> |
| 624 | </DL> |
| 625 | </DL> |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 626 | <HR> |
| 627 | |
| 628 | <A NAME="cf"><!-- --></A><H3> |
| 629 | cf</H3> |
| 630 | <PRE> |
| 631 | public <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> <B>cf</B></PRE> |
| 632 | <DL> |
| 633 | <DD>Custom filter instance |
| 634 | <P> |
| 635 | <DL> |
| 636 | </DL> |
| 637 | </DL> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 638 | |
| 639 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 640 | |
| 641 | <A NAME="constructor_detail"><!-- --></A> |
| 642 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 643 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 644 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| 645 | <B>Constructor Detail</B></FONT></TH> |
| 646 | </TR> |
| 647 | </TABLE> |
| 648 | |
| 649 | <A NAME="TJTransform()"><!-- --></A><H3> |
| 650 | TJTransform</H3> |
| 651 | <PRE> |
| 652 | public <B>TJTransform</B>()</PRE> |
| 653 | <DL> |
| 654 | <DD>Create a new lossless transform instance. |
| 655 | <P> |
| 656 | </DL> |
| 657 | <HR> |
| 658 | |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 659 | <A NAME="TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><!-- --></A><H3> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 660 | TJTransform</H3> |
| 661 | <PRE> |
| 662 | public <B>TJTransform</B>(int x, |
| 663 | int y, |
| 664 | int w, |
| 665 | int h, |
| 666 | int op, |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 667 | int options, |
| 668 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf) |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 669 | throws java.lang.Exception</PRE> |
| 670 | <DL> |
| 671 | <DD>Create a new lossless transform instance with the given parameters. |
| 672 | <P> |
| 673 | <DL> |
| 674 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - the left boundary of the cropping region. This must be evenly |
| 675 | divisible by the MCU block width (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)"><CODE>TJ.getMCUWidth(int)</CODE></A>)<DD><CODE>y</CODE> - the upper boundary of the cropping region. This must be evenly |
| 676 | divisible by the MCU block height (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><CODE>TJ.getMCUHeight(int)</CODE></A>)<DD><CODE>w</CODE> - the width of the cropping region. Setting this to 0 is the |
DRC | 65d4a46 | 2013-04-27 01:06:52 +0000 | [diff] [blame] | 677 | equivalent of setting it to (width of the source JPEG image - |
| 678 | <code>x</code>).<DD><CODE>h</CODE> - the height of the cropping region. Setting this to 0 is the |
| 679 | equivalent of setting it to (height of the source JPEG image - |
| 680 | <code>y</code>).<DD><CODE>op</CODE> - one of the transform operations (<code>OP_*</code>)<DD><CODE>options</CODE> - the bitwise OR of one or more of the transform options |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 681 | (<code>OPT_*</code>)<DD><CODE>cf</CODE> - an instance of an object that implements the <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><CODE>TJCustomFilter</CODE></A> interface, or null if no custom filter is needed |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 682 | <DT><B>Throws:</B> |
| 683 | <DD><CODE>java.lang.Exception</CODE></DL> |
| 684 | </DL> |
| 685 | <HR> |
| 686 | |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 687 | <A NAME="TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><!-- --></A><H3> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 688 | TJTransform</H3> |
| 689 | <PRE> |
| 690 | public <B>TJTransform</B>(java.awt.Rectangle r, |
| 691 | int op, |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 692 | int options, |
| 693 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf) |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 694 | throws java.lang.Exception</PRE> |
| 695 | <DL> |
| 696 | <DD>Create a new lossless transform instance with the given parameters. |
| 697 | <P> |
| 698 | <DL> |
DRC | 80803ae | 2011-12-15 13:12:59 +0000 | [diff] [blame] | 699 | <DT><B>Parameters:</B><DD><CODE>r</CODE> - a <code>Rectangle</code> instance that specifies the cropping |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 700 | region. See <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><CODE>TJTransform(int, int, int, int, int, int, TJCustomFilter)</CODE></A> for more |
DRC | 2c74e51 | 2011-03-16 00:02:53 +0000 | [diff] [blame] | 701 | detail.<DD><CODE>op</CODE> - one of the transform operations (<code>OP_*</code>)<DD><CODE>options</CODE> - the bitwise OR of one or more of the transform options |
DRC | f546711 | 2011-09-20 05:02:19 +0000 | [diff] [blame] | 702 | (<code>OPT_*</code>)<DD><CODE>cf</CODE> - an instance of an object that implements the <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><CODE>TJCustomFilter</CODE></A> interface, or null if no custom filter is needed |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 703 | <DT><B>Throws:</B> |
| 704 | <DD><CODE>java.lang.Exception</CODE></DL> |
| 705 | </DL> |
| 706 | <!-- ========= END OF CLASS DATA ========= --> |
| 707 | <HR> |
| 708 | |
| 709 | |
| 710 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 711 | <A NAME="navbar_bottom"><!-- --></A> |
| 712 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 713 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 714 | <TR> |
| 715 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 716 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| 717 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 718 | <TR ALIGN="center" VALIGN="top"> |
| 719 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 720 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 721 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 722 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 723 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 724 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 725 | </TR> |
| 726 | </TABLE> |
| 727 | </TD> |
| 728 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 729 | </EM> |
| 730 | </TD> |
| 731 | </TR> |
| 732 | |
| 733 | <TR> |
| 734 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
DRC | b2f9415 | 2011-04-02 02:09:03 +0000 | [diff] [blame] | 735 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A> |
DRC | 92549de | 2011-03-15 20:52:02 +0000 | [diff] [blame] | 736 | <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD> |
| 737 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 738 | <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top"><B>FRAMES</B></A> |
| 739 | <A HREF="TJTransform.html" target="_top"><B>NO FRAMES</B></A> |
| 740 | <SCRIPT type="text/javascript"> |
| 741 | <!-- |
| 742 | if(window==top) { |
| 743 | document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 744 | } |
| 745 | //--> |
| 746 | </SCRIPT> |
| 747 | <NOSCRIPT> |
| 748 | <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 749 | </NOSCRIPT> |
| 750 | |
| 751 | |
| 752 | </FONT></TD> |
| 753 | </TR> |
| 754 | <TR> |
| 755 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 756 | SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.awt.Rectangle">METHOD</A></FONT></TD> |
| 757 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 758 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD> |
| 759 | </TR> |
| 760 | </TABLE> |
| 761 | <A NAME="skip-navbar_bottom"></A> |
| 762 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 763 | |
| 764 | <HR> |
| 765 | |
| 766 | </BODY> |
| 767 | </HTML> |