PessoAll


Gostaria de entender como funciona o clipRect! (Graphics g; g.setClip(...))

Na documentação do J2D que encontrei, está dizendo algo mais ou menos assim:

A clipping path identifies the portion of a Shape or Image that needs to be
rendered. When a clipping path is part of the Graphics2D context, only those
parts of a Shape or Image that lie within the path are rendered.
To add a clipping path to the Graphics2D context, you call setClip. Any
Shape
can be used to define the clipping path.
To change the clipping path, you can either use setClip to specify a new
path or
call clip to change the clipping path to the intersection of the old
clipping path
and a new Shape.



Então, têm à ver com renderizações, mas ...

Não peguei o espírito prático da coisa!


Por favor, me ajudem!



Clebert




P.S.: A documentação que estou utilizando, encontrei nesta URL:
http://java.sun.com/products/jdk/1.2/download-pdf-ps.html




    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usuários Java da Sucesu-SP
    [dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    ---------------------------------------------------------------------

Responder a