黑莓中的低级图形
大家好,我是 blackebry 的新手。我想使用低级图形来绘制位图字段。在此位图字段上,我需要执行三个操作 -
- 选择位图字段,
- 将其向任意方向拖动到屏幕中,
- 最后在屏幕上的任意点释放它。
我该怎么办? 如果“Canvas”可以是一种解决方案...任何人都可以帮我提供一些如何使用“Canvas”的示例代码吗?
还有其他方法可以制作可拖动的位图字段吗??
请帮忙
hi everyone I am new to blackebrry. I want to use low level graphics for drawing a bitmapfield. On this bitmapfield i need to take three action-
- pick the bitmapfield,
- drag it in the screen in any direction and
- finally release it at any point on the screen.
how can I do this.
if 'Canvas' can be a solution... can any one help me with some sample code for how to use 'Canvas'.
Also is there any other method for making a draggable bitmapfield..??
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您可以创建一个位图并从中获取图形对象以在其上进行自定义绘图。
[编辑]
我添加了一个用于在屏幕上拖动图像的代码片段。您可以检查此代码是否适用于您。
Firstly, you can create a bitmap and get a graphics object from it to do custom drawing on it.
[Edited]
I have added a code snippet for drag an image on a screen. You can check this code if it works on your side.