e595. Drawing an Image

2021-07-12 18:13

阅读:383

标签:his   strong   amp   cells   related   pre   cell   graphic   idt   

See also e575 The Quintessential Drawing Program and e594 Reading an Image or Icon from a File.

    public void paint(Graphics g) {
        // Draw an Image object
        int x = 0;
        int y = 0;
        g.drawImage(image, x, y, this);
    
        // Draw an Icon object
        x = 0;
        y = 100;
        icon.paintIcon(this, g, x, y);
    }

 

Related Examples

e595. Drawing an Image

标签:his   strong   amp   cells   related   pre   cell   graphic   idt   

原文地址:https://www.cnblogs.com/borter/p/9596075.html


评论


亲,登录后才可以留言!