作者PsMonkey (痞子军团团长)
站内java
标题Re: [J2ME] 请问制作小画家
时间Mon Sep 15 15:37:13 2008
※ 引述《q1980 (啦啦)》之铭言:
: 希望此程式可以读入图片档
: 想使用者在其上画图画到一半时
: 按下方向键後原本图形会移动
: 让使用者可以画原本萤幕外的区域
: 但javax.microedition.lcdui.Image.createImage()
: 读取图片後是immutable无法在其上作图
你没有给程式码、也没有说明怎麽「作图」的
这样谁知道你犯了什麽错误? 抑或是根本无解?
我 google javax.microedition.lcdui.Image 之後
找到 api,然後针对内容 search immutable
Images are either mutable or immutable depending upon how
they are created. Immutable images are generally created
by loading image data from resource bundles, from files,
or from the network. They may not be modified once created.
Mutable images are created as blank images containing only
white pixels. The application may render on a mutable image
by calling getGraphics() on the Image to obtain a Graphics
object expressly for this purpose.
唉....
: 请问有什麽办法可以做到上述啊 谢谢
: PS.我的触控萤幕手机似乎有支援FileConnection API
有支援 FileConnection API 跟你的问题的关系到底是什麽?
还是你只是想跟大家讲你有触控萤幕手机...?
----
我砍了这篇文章两次,也寄信寄了两次
要求原 po 把问题问的清楚一点
结果最後只有加上 package 的名称(参见中的暂存区)
原 po 若再触犯作业文条款,直接水桶一个月
--
侃侃长论鲜窒碍 首页:
http://www.psmonkey.idv.tw
众目睽睽无心颤 Blog:
http://ps-think.blogspot.com
茕居少聊常人事
杀头容易告白难 欢迎参观 Java 版(@ptt.cc) \囧/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 124.218.58.96
1F:推 q1980:就是因为我认为用这方法是无解的,所以才没有附完整程式码, 09/15 18:07
2F:→ q1980:而FileConnection可能是解决的方向,但我不知道要怎麽做 09/15 18:10
3F:→ PsMonkey:看清楚 API 讲啥,我不相信是无解(是说,也懒得帮你写) 09/15 21:14
4F:推 H45:Graphics 才是可能解决的方向吧? 09/16 03:34
5F:推 Lordaeron:将读上来的image clone一份哪份就是可以改的了吧 09/16 11:33