Java中Image和BufferedImage的区别 [英] Difference between the Image and BufferedImage in Java

查看:493
本文介绍了Java中Image和BufferedImage的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Image和BufferedImage有什么区别?

What is the difference between Image and BufferedImage?

我可以直接从图像源image.png创建BufferedImage吗?

Can I create a BufferedImage directly from an Image source "image.png"?

推荐答案

如果您熟悉Java的util.List,则Image和BufferedImage之间的区别与List和LinkedList之间的区别相同。

If you are familiar with Java's util.List, the difference between Image and BufferedImage is the same as the difference between List and LinkedList.

Image是一个通用概念,BufferedImage是泛型概念的具体实现;有点像宝马是一辆汽车的制造。

Image is a generic concept and BufferedImage is the concrete implementation of the generic concept; kind of like BMW is a make of a Car.

这篇关于Java中Image和BufferedImage的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆