Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

perspective transformation in java2d

 
tahelu kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me on this, or any link..
 
Rob Spoor
Sheriff
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue. Please wait a little longer than 10 hours next time.
 
tahelu kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you are right
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java 2D doesn't support perspective transformation. Did you search the net using the keywords "perspective transform java"?
 
tahelu kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
, 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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic