aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes perspective transformation in java2d Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "perspective transformation in java2d" Watch "perspective transformation in java2d" New topic
Author

perspective transformation in java2d

tahelu kumar
Greenhorn

Joined: Nov 09, 2011
Posts: 16
hi all,
i have worked on the affine transformation in java2d, but how to achieve the perspective transformation through the java 2d, as affine transformation maintains the parallelism in image.
waiting for reply,

thanks,
tahelu
tahelu kumar
Greenhorn

Joined: Nov 09, 2011
Posts: 16
can anyone help me on this, or any link..
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

PatienceIsAVirtue. Please wait a little longer than 10 hours next time.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
tahelu kumar
Greenhorn

Joined: Nov 09, 2011
Posts: 16
yes you are right
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Java 2D doesn't support perspective transformation. Did you search the net using the keywords "perspective transform java"?


luck, db
There are no new questions, but there may be new answers.
tahelu kumar
Greenhorn

Joined: Nov 09, 2011
Posts: 16
yes, i did search the perspective transformation in java, that suggests the use of java imaging api,
i have used it but its quite too slow and much complex too...
i somewhere heard that , perspective transformation can also be achieved by affine transformations, which is part of java2d, but i don't know how?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

tahelu kumar wrote:yes, i did search the perspective transformation in java, that suggests the use of java imaging api,

Java Advanced Imaging API. Please learn to capitalize correctly -- and also at the start of each sentence and for the first person singular.

tahelu kumar wrote:i have used it but its quite too slow and much complex too...

Could be your hardware. How much computing power are you throwing at it? (CPU GHz, RAM GB)

tahelu kumar wrote:i somewhere heard that , perspective transformation can also be achieved by affine transformations, which is part of java2d,

Avoid any site where you read that. Perspective transformation involves a non-affine transform. Period.

tahelu kumar wrote:but i don't know how?

Another option is to use JavaFX 2.0, which also has a PerspectiveTransform Effect and uses a newer rendering engine, so may be faster. If you go this route, any future questions that arise should be posted in the JavaFX forum.
tahelu kumar
Greenhorn

Joined: Nov 09, 2011
Posts: 16
, Well thanks for your reply, but i think that if we should concentrate of the topics here and not on how we are writing or using the language. This does not make sense for professionals.
and the reason for its slowness i don't know. But what i tried was-


and computing power: CPU 2.93GHz, RAM 2GB
[Edit]Add code tags. Also new lines, otherwise the long lines are very difficult to read. CR[/edit]
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

tahelu kumar wrote:, Well thanks for your reply, but i think that if we should concentrate of the topics here and not on how we are writing or using the language. This does not make sense for professionals.


Please read this advice and go through the pages linked at the bottom of the topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: perspective transformation in java2d