Java Doc for AffineOpImage.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » com » sun » media » jai » opimage » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » com.sun.media.jai.opimage 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.media.jai.GeometricOpImage
   com.sun.media.jai.opimage.AffineOpImage

All known Subclasses:   com.sun.media.jai.opimage.AffineGeneralOpImage,  com.sun.media.jai.opimage.AffineBicubic2OpImage,  com.sun.media.jai.opimage.AffineBicubicOpImage,  com.sun.media.jai.opimage.AffineBilinearOpImage,  com.sun.media.jai.opimage.AffineNearestOpImage,
AffineOpImage
class AffineOpImage extends GeometricOpImage (Code)
An OpImage class to perform (possibly filtered) affine mapping between a source and destination image. The geometric relationship between source and destination pixels is defined as the following (x and y denote the source pixel coordinates; x' and y' denote the destination pixel coordinates; m denotes the 3x2 transform matrix):
    x' = m[0][0] * x + m[0][1] * y + m[0][2]
    y' = m[1][0] * x + m[1][1] * y + m[1][2]


Field Summary
final protected static  intUSHORT_MAX
    
protected  BorderExtenderextender
    
protected  AffineTransformf_transform
     The forward AffineTransform describing the image transformation.
 doublefracdxfracdx1fracdyfracdy1
    
final protected static  intgeom_frac_max
     The fixed-point denominator of the fractional offsets.
protected  AffineTransformi_transform
     The inverse AffineTransform describing the image transformation.
 intifracdxifracdx1ifracdyifracdy1
    
 intincxincx1incyincy1
    
protected  Interpolationinterp
     The Interpolation object.
public  intlpadrpadtpadbpad
    
 doublem00m10flr_m00flr_m10
    

Constructor Summary
public  AffineOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, AffineTransform transform, Interpolation interp, double[] backgroundValues)
     Constructs an AffineOpImage from a RenderedImage source, AffineTransform, and Interpolation object.

Method Summary
protected  RectanglebackwardMapRect(Rectangle destRect, int sourceIndex)
     Backward map the destination Rectangle.
protected static  intceilRatio(long num, long denom)
     Computes ceil(num/denom) using integer arithmetic.
public  RastercomputeTile(int tileX, int tileY)
    
protected static  intfloorRatio(long num, long denom)
     Computes floor(num/denom) using integer arithmetic.
protected  RectangleforwardMapRect(Rectangle sourceRect, int sourceIndex)
     Forward map the source Rectangle.
public  Point2DmapDestPoint(Point2D destPt)
     Computes the source point corresponding to the supplied point.
Parameters:
  destPt - the position in destination image coordinatesto map to source image coordinates.
public  voidmapDestPoint(Point2D destPoint, Point2D srcPoint)
     Backward map a destination coordinate (using inverse_transform) to get the corresponding source coordinate.
public  Point2DmapSourcePoint(Point2D sourcePt)
     Computes the destination point corresponding to the supplied point.
Parameters:
  sourcePt - the position in source image coordinatesto map to destination image coordinates.

Field Detail
USHORT_MAX
final protected static int USHORT_MAX(Code)
Unsigned short Max Value



extender
protected BorderExtender extender(Code)
The BorderExtender



f_transform
protected AffineTransform f_transform(Code)
The forward AffineTransform describing the image transformation.



fracdxfracdx1fracdyfracdy1
double fracdxfracdx1fracdyfracdy1(Code)



geom_frac_max
final protected static int geom_frac_max(Code)
The fixed-point denominator of the fractional offsets.



i_transform
protected AffineTransform i_transform(Code)
The inverse AffineTransform describing the image transformation.



ifracdxifracdx1ifracdyifracdy1
int ifracdxifracdx1ifracdyifracdy1(Code)



incxincx1incyincy1
int incxincx1incyincy1(Code)



interp
protected Interpolation interp(Code)
The Interpolation object.



lpadrpadtpadbpad
public int lpadrpadtpadbpad(Code)
Padding values for interpolation



m00m10flr_m00flr_m10
double m00m10flr_m00flr_m10(Code)




Constructor Detail
AffineOpImage
public AffineOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, AffineTransform transform, Interpolation interp, double[] backgroundValues)(Code)
Constructs an AffineOpImage from a RenderedImage source, AffineTransform, and Interpolation object. The image dimensions are determined by forward-mapping the source bounds. The tile grid layout, SampleModel, and ColorModel are specified by the image source, possibly overridden by values from the ImageLayout parameter.
Parameters:
  source - a RenderedImage.
Parameters:
  extender - a BorderExtender, or null.
Parameters:
  layout - an ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null.
Parameters:
  transform - the desired AffineTransform.
Parameters:
  interp - an Interpolation object.




Method Detail
backwardMapRect
protected Rectangle backwardMapRect(Rectangle destRect, int sourceIndex)(Code)
Backward map the destination Rectangle.



ceilRatio
protected static int ceilRatio(long num, long denom)(Code)
Computes ceil(num/denom) using integer arithmetic. denom must not be equal to 0.



computeTile
public Raster computeTile(int tileX, int tileY)(Code)



floorRatio
protected static int floorRatio(long num, long denom)(Code)
Computes floor(num/denom) using integer arithmetic. denom must not be equal to 0.



forwardMapRect
protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex)(Code)
Forward map the source Rectangle.



mapDestPoint
public Point2D mapDestPoint(Point2D destPt)(Code)
Computes the source point corresponding to the supplied point.
Parameters:
  destPt - the position in destination image coordinatesto map to source image coordinates. a Point2D of the same class asdestPt.
throws:
  IllegalArgumentException - if destPt isnull.
since:
   JAI 1.1.2



mapDestPoint
public void mapDestPoint(Point2D destPoint, Point2D srcPoint)(Code)
Backward map a destination coordinate (using inverse_transform) to get the corresponding source coordinate. We need not worry about interpolation here.
Parameters:
  destPt - the destination point to backward map source point result of the backward map



mapSourcePoint
public Point2D mapSourcePoint(Point2D sourcePt)(Code)
Computes the destination point corresponding to the supplied point.
Parameters:
  sourcePt - the position in source image coordinatesto map to destination image coordinates. a Point2D of the same class assourcePt.
throws:
  IllegalArgumentException - if destPt isnull.
since:
   JAI 1.1.2



Fields inherited from javax.media.jai.GeometricOpImage
protected double[] backgroundValues(Code)(Java Doc)
protected Rectangle computableBounds(Code)(Java Doc)
protected BorderExtender extender(Code)(Java Doc)
protected int[] intBackgroundValues(Code)(Java Doc)
protected Interpolation interp(Code)(Java Doc)
protected boolean setBackground(Code)(Java Doc)

Methods inherited from javax.media.jai.GeometricOpImage
abstract protected Rectangle backwardMapRect(Rectangle destRect, int sourceIndex)(Code)(Java Doc)
public Raster computeTile(int tileX, int tileY)(Code)(Java Doc)
abstract protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex)(Code)(Java Doc)
public BorderExtender getBorderExtender()(Code)(Java Doc)
public Interpolation getInterpolation()(Code)(Java Doc)
public Point2D mapDestPoint(Point2D destPt, int sourceIndex)(Code)(Java Doc)
public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)(Code)(Java Doc)
public Point2D mapSourcePoint(Point2D sourcePt, int sourceIndex)(Code)(Java Doc)
public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.