J2ME黑白图像采集
我想使用 j2me 捕获黑白图像 我可以捕捉彩色图像,但想要捕捉黑白和灰度图像,
我在相机画布中的哪里设置此属性?
I want to capture black and white image using j2me
i am ok with color image capturing but wants to capture black and white and gray scale iamge
where do i set this property in camera canvas??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您很可能需要使用管理器的图像编码设置
http://java.sun.com /javame/reference/apis/jsr135/javax/microedition/media/Manager.html#media_encodings
Most probably you will need to play with the image encoding settings of the Manager
http://java.sun.com/javame/reference/apis/jsr135/javax/microedition/media/Manager.html#media_encodings
通过使用以下代码,您可以将图像转换为灰度
}
by using following code you can convert image to grey scale
}