增加位图大小而不缩放图像
我想增加Android应用程序中的位图的大小。
这听起来像是一个非常简单的操作,但我找不到任何地方。 这是一个图像来说明我在这里要实现的目标:
基本上,我想创建一个与原始宽度相同的宽度,但高度更大的位图。 (新)额外像素的背景可以是黑色,白色或透明的。
我该怎么做?
I would like to increase the size of a Bitmap in my Android application.
It sounds like a very simple operation but I cannot find how to do so anywhere.
Here is an image to illustrate what I am trying to achieve here:
Basically, I'd like to create a new bitmap that has the same width as the original, but a bigger height. The background of the (new) extra pixels can be black, white or transparent.
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这样的人应该这样做。
Some like this should do.