wayne0101
February 5th, 2002, 07:26 AM
hi,
i have the problem that i have some BufferedImages with 2400x1700 size. these images have a AffineTransform that describes, where they are and how they are on my 2D displaying component. now i want to get a subimage. to extract it, i get another AffineTransform, that tells me, where and with what angle i have to get the subimage from the others. the only methode i can find is BufferdImage.getSubimage(Rectangle) whitch is not, what i'm looking for.
Before i used AffineTransform and BufferedImage for my project, i used JAI, but thats very very slow for that size of picture. i also used the pixelgrabber but he is more slower that JAI.
at the moment i draw the BufferdImages on a Rectangle r sized BufferdImage with their AffineTransforms. then this Rectangle r sized BufferdImage is my subimage. at last i execute BufferdImage.getSubimage(r) on that image and put in on a panel to display it. But that takes around 300 ms. thats too slow.
i would be glad if you could help me find a solution for that problem. if you use for your solution another imagetyp, please also tell me, how i can transform it to a buffered image. don't forget that this transformation may also use time by itselfe (like JAI) and that could make your solution worthless for me.
thank you very much
wayne
i have the problem that i have some BufferedImages with 2400x1700 size. these images have a AffineTransform that describes, where they are and how they are on my 2D displaying component. now i want to get a subimage. to extract it, i get another AffineTransform, that tells me, where and with what angle i have to get the subimage from the others. the only methode i can find is BufferdImage.getSubimage(Rectangle) whitch is not, what i'm looking for.
Before i used AffineTransform and BufferedImage for my project, i used JAI, but thats very very slow for that size of picture. i also used the pixelgrabber but he is more slower that JAI.
at the moment i draw the BufferdImages on a Rectangle r sized BufferdImage with their AffineTransforms. then this Rectangle r sized BufferdImage is my subimage. at last i execute BufferdImage.getSubimage(r) on that image and put in on a panel to display it. But that takes around 300 ms. thats too slow.
i would be glad if you could help me find a solution for that problem. if you use for your solution another imagetyp, please also tell me, how i can transform it to a buffered image. don't forget that this transformation may also use time by itselfe (like JAI) and that could make your solution worthless for me.
thank you very much
wayne