> > Is there in Java an equivalent to the Windows GDI function
> > SetStretchBltMode()?
>
> Set a RenderingHint (there aren't too many regarding interpolation),
> and try if your system adhears to the hint.
Thomas, thank you very much. I tried VALUE_INTERPOLATION_BICUBIC,
VALUE_INTERPOLATION_BILINEAR and VALUE_INTERPOLATION_NEAREST_NEIGHBOR,
but they don't give me what I need (STRETCH_ORSCANS).
It seems that I need to define my own rendering hint. Unfortunately, I
couldn't find much information about how this feature work. I read the
following:
http://java.sun.com/products/jdk/1.2/docs/guide/2d/spec/j2d-awt.fm3.html#65412
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/RenderingHints.html
http://java.sun.com/docs/books/tutorial/2d/display/quality.html
But this a far cry from the depth of information I need about this
feature. Any idea where I can find more material about this? (web URLs
would be super!)
Thanks,
Swengtoo
ak - 05 Nov 2003 08:32 GMT
Can you tell me why you need this function?
> > > Is there in Java an equivalent to the Windows GDI function
> > > SetStretchBltMode()?
[quoted text clipped - 9 lines]
> couldn't find much information about how this feature work. I read the
> following:
http://java.sun.com/products/jdk/1.2/docs/guide/2d/spec/j2d-awt.fm3.html#654
12
> http://java.sun.com/j2se/1.4.2/docs/api/java/awt/RenderingHints.html
> http://java.sun.com/docs/books/tutorial/2d/display/quality.html
[quoted text clipped - 5 lines]
> Thanks,
> Swengtoo