c# 图片加边框答:g.DrawImage(img, rec, 0, 0, img.Width, img.Height, GraphicsUnit.Pixel);g.DrawRectangle(new Pen(bordcolor, bordheight), 0, 0, newwidth, newheight);} else if (Style == 1) //New: 上下边框.{ System.Drawing.Rectangle rec = new Rectangle(0, bordwidth / 2, newwidth,...
有一副行走图 怎么在JAVA中用这幅行走图表现出人物左右行走的样子呢...答:g.drawImage(back, 0, 0, this);if (img != null) { yoff = 144;g.drawImage(img, x, y, x + 144, y + 144, 144, -144+144*dir, yoff + 144, 144*dir,this);} } // KeyEvent Listener public void keyPressed(KeyEvent e) { switch (e.getKeyCode()) { // case Key...