由买买提看人间百态

topics

全部话题 - 话题: java2d
1 (共1页)
h*******x
发帖数: 347
1
来自主题: JobMarket版 - 公司请人:软件工程师
发信人: houstontx (netprogrammer), 信区: JobHunting
标 题: 公司请人:软件工程师
发信站: BBS 未名空间站 (Sun Aug 3 02:07:35 2008)
软件工程师
地点:休斯顿
时间:ASAP
工作内容:做工程应用软件。stand alone application with web interface.The
first task is upgrading a silverlight component. You will learn on the job
by yourself if don't have previous experience on silverlight. 基本上内部使用
。独立工作--软件不大(50k-100k lines)。
要求:c++(at least read), c# , 2D/3D graphics(at least one out of GDI,
directX, openGL, java2D, java3D), multi-thread programming.
Any other exp
z*******3
发帖数: 13709
2
来自主题: Apple版 - 什么软件在macosx上没有
As well as being language-independent, OpenGL is also platform-independent.
The specification says nothing on the subject of obtaining, and managing, an
OpenGL context, leaving this as a detail of the underlying windowing system
. For the same reason, OpenGL is purely concerned with rendering - it
provides no APIs related to input, audio or windowing. This is perhaps the
greatest difference between OpenGL and its competitor, DirectX.
http://en.wikipedia.org/wiki/OpenGL
directx最早说是要做一个lightweight... 阅读全帖
R******g
发帖数: 272
3
java2有一个java.awt.print的package.
sample的话,你可以看java2d带的demo中的DemoSurface.java
c*****t
发帖数: 1879
4
来自主题: Java版 - Java2D ComponentColorModel question
Say I created a ComponentColorModel from gray color space, the image
data buffer contain 16 bit images, it is possible to manipulate
the palette of ComponentColorModel? Like I want to change index
10 to Color.Blue?
I also tried IndexColorModel (how do you create 16bit gray w/ this one?),
however, when I show layers of images and set their corresponding alpha
values, I get exception in the image drawing. Any ideas?
Sorry that I don't have code in front of me, but if you can give me
any hints, t
c*****t
发帖数: 1879
5
I just know one thing: Java2D. Java1.4 has VolatileImage which supposely
to have the possibility of using Video memory, thus improve speed.
d****n
发帖数: 5
6
来自主题: Java版 - 求助Java Image Tools or API
Thanks.
If Java's performance is really bad, I will have to use JNI to connect to
other tools. One example is to use JMagick - ImageMagick. But I really want a
pure Java solution if possible.
Java Image APIs confused me a lot. We have Java2D, JAI (Java Advanced Imaging
API), new ImageIO API and some old APIs in AWT package. Hope some experts can
give me hints so I can shortcut to the right direction.


API。不知道Java的performance
c*****t
发帖数: 1879
7
来自主题: Java版 - Java 2D help..
I have a piece of code that works on Windows and SGI, but generated bunch of
exceptions at run time on Mac OS X. So, please help if you can.
*** java.lang.ClassCastException***
*** at
sun.awt.image.BufImgSurfaceData.createDataBC(BufImgSurfaceData.java:502)***
*** at
sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:286)***
*** at
sun.java2d.SurfaceData.getSurfaceDataFromImage(SurfaceData.java:101)***
*** at apple.awt.CRenderer.blitImage(CRenderer.java:477)***
*** at apple.a
c*****t
发帖数: 1879
8
来自主题: Java版 - Java 2D help..
I guess that I will probably have to implement the copy part myself.
Sigh, I've struggled with Java2D for quite a bit time now. Every
now and then I meet this kind of problem that I just have to try
a lot ways and find one that works. Sometimes the solution requires
to restructure the flow, which sucks :(
Thanks for the reply though.
st
发帖数: 1685
9
来自主题: Java版 - Java能帮我做这个project吗?
complicated java GUI does get messy, but you can just use java2D stuff,
without much menu or dialog...
st
发帖数: 1685
10
来自主题: Java版 - 新手问个数学作图的问题?
well, try java2D stuff?
st
发帖数: 1685
11
I used java2d, it's very easy to do this... I saved image as jpeg,
which is one of the supported type.
f********h
发帖数: 149
12

based on the job, you probably need to know how to visualize data, so
something about java2D,3D,etc.
c*****t
发帖数: 1879
13
Java3D maybe dead. Sun layed-off/reassigned people in the Java3D
team. They now favors OpenGL again...
Java3D is object-oriented, unlike OpenGL. It makes doing things
such as animation, mouse etc significantly easier. However, OpenGL
stuff seemed to be more popular, easier to implement etc.
In short, don't waste time on Java3D.
As for Java2D, usually knowint Graphics/Graphics2D is good enough.
You probably don't even have to worry about transformations etc.
Unless you do image processing (wh
g*****g
发帖数: 34805
14
It's not really hard to do this job if you know Java2D,
however, as a newbie, I guess the best you can do is
download the image, edit using a local tool, and upload.
g*****g
发帖数: 34805
15
来自主题: Java版 - Java做界面能做成这样吗?
I am sorry, is there anything special in this interface?
You just pile some icon buttons in there, and now if you
know a little about Java2D, you are all set.
Too pity Java3D is not an official part of Java, you can
even desgin 3D interface with that.
g*****g
发帖数: 34805
16
java2D tutorial should be helpful.
g*****g
发帖数: 34805
17
来自主题: Java版 - Image processing library
Java2D, part of Java JDK is good enough for what you list.

.)
j******o
发帖数: 82
18
来自主题: Java版 - Java 里划直线加粗的问题
It depends. the performance of filling a polygon is better than that of
Java2D with a line stroke > 1. If it's just a horizontal or vertical line
you can use the polygon approach with simple math, although it is not
hard for a line with any slope either.
g.drawPolygon() will respect the antialiasing hint.
j******o
发帖数: 82
19
This is so damn true. Probably most java apps are web
j2ee based. Desktop client is still dominated by native
code. Even fewer people write Java2D, which to me is
the single best thing that I've not seen in other GUI
framework/toolkit.
There are a lot of good things in Swing, but things like
JTable are not well designed. Simplicity is simply not there.
F****n
发帖数: 3271
20
来自主题: Java版 - 请教document
You gave too little information, however,
1. As someone mentioned before, try not to reset your document every time
you refresh the view;
2. If the data is large, JTextPane will be slow ANYWAY, because your texts
are very fragmented. If this is the case, you should use TextLayout to cache
styled texts and directly render them to a JComponent. This is the fastest
way in Java2D to render texts.
g****j
发帖数: 24
21
来自主题: Java版 - 请教document

看来我没法用document了,我不得不频繁更新document的内容,user每更新一次某个参
数,或者拖动scrollbar,document的文字就需要更新。
cache
fastest
Java2D 的TextLayout 看起来不错,我刚google了一下。问题是,这个比起直接在
jpanel
上用drawstring的优势在哪里呢?多谢。
z*******3
发帖数: 13709
22
来自主题: Java版 - Java的主要的应用是什么?
但是涉及到复杂的处理
比如做一个游戏的客户端
flash就力不从心了
但是这个java做起来,不能说很容易,但是minecraft证明了这种模式的可行
只不过说java不在这一块太久了,以至于这个行业的人对java都陌生了
android的出现会好一点,但是还是没有人想过要在pc上做这个东东
pc上的家伙还停留在directx和opengl,或者说看不上java2d和3d
嫌虚拟机麻烦,话说回来,这一块java也的确有点上不上下不下
这种上不上下不下最尴尬了
z****e
发帖数: 54598
23
来自主题: Java版 - ECLLIPSE 做 GUI
最近一直在玩javafx
image类明显比java2d的image好用
而且各种缺省设置都比较正常
不象以前,要用classloader去找路径
而且还建一个对象保存透明的像素
导致内存使用经常会暴涨
还有新增的动画和binding功能是主要常见的功能
会经常使用
唯一的问题就是资料太少,新东西
有经验的人实在是不多
大部分都是oracle那些做javafx的人写的文章
z*******3
发帖数: 13709
24
来自主题: Java版 - 画图 LIBRARY
你打算在哪里画先?
desktop还是browser里面
如果是desktop的话,用javafx,看viewport
或者用swing,用canvas,javafx最新版本也有canvas
可以做得很好,但是如果只是一些简单的图片生成
用网页读取的话,用jfreechart就行了
另外,你还可以用java2d
z****e
发帖数: 54598
25
我建议你用一下javafx
javafx现在已经2.2版本了
比较稳定了,不稳定不会跑去做mac和linux版
而且swing是pure java2d rendering
其实效率不高,javafx则会利用directx和opengl接口
图像的效率理论上要高于swing
还有就是binding很好用,而且各种控件的效果也比swing好
试试你就知道了
d*****l
发帖数: 8441
26
可能是曲线数据量太大了(24万个数据点),不知能否人为增加Memory. 谢谢!
以下是出错信息:
Exception in thread "D3D Screen Updater" java.lang.OutOfMemoryError:
Java heap space
at java.lang.reflect.Array.newArray(Native Method)
at java.lang.reflect.Array.newInstance(Unknown Source)
at java.util.Arrays.copyOf(Unknown Source)
at java.util.ArrayList.toArray(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.... 阅读全帖
z****e
发帖数: 54598
27
关于真神的如何激发本科生的兴趣
说当时我们是怎么激发本科生兴趣的
那个老师在微软做过一两年时间,在成为ta之前
说起来也好笑,我总是在各个学校遇到教java的老师
都曾经是m$的员工
扯远
然后他是这么激发兴趣的
他上来就用directx, opengl, java2d这些来激发兴趣
用视觉上的刺激来引导学生
告诉他们离做starcraft有多远
效果出乎意料地好
那门课的review很多文科生留言:你让一个学arts的学生也能写出程序
这个老师很聪明的一点就是不象书呆子一般用各种数学去引导他们
101里面有一堆文科生艺术类的在上选修课
这种人你上来就大谈algorithm
他们肯定课没上完就提着包从你面前走过离开了
现在最新打算是用android上的编程来引导他们
学完java,你就算不能写出starcraft
写出一个简单的愤怒的小鸟应该问题不大
z*******3
发帖数: 13709
28
来自主题: Programming版 - 主力程序员离职后怎么办?
其实我用java2d感觉也没那么糟糕的说
90fps很容易
z****e
发帖数: 54598
29
java3d和2d最大的问题是图形接口效率偏低的问题
尤其是以前那种破机器,嘎拉嘎拉跑得很慢
所以现在javafx提出的解决方案是优先通过调用opengl或者directx的api来优化
然后才是通过java2d和java3d的接口来搞定
这样可以用上一些硬件加速之类的
所以这是优化的办法,至于你说的无缝结合
哦,貌似网络上骂声一片,骂的远比opengl还多
opengl已经够惨痛的了
可能对你来说是无缝吧
z****e
发帖数: 54598
30
来自主题: Programming版 - java8就是冲着desktop去的
脚本不适合写游戏,很逆天
而且脚本太依赖平台,浏览器一个兼容搞死人
相比之下,java以前那么弱的时候
都能搞出minecraft这种东西,理论依据在于只考虑一个平台那就是jvm
下面os的兼容性让jvm搞定,java天生就是干这个的
以前推广主要问题在于api支持不够
java2d和3d都不是很成功,慢,现在javafx搞硬件加速这些
其本质就是直接调用directx和opengl接口去执行代码
而且用户要安装下载jvm,这也是很大的问题
而且以前把jvm打包进去的话,体积很大
体积大一个主因是官方不怎么支持这种搞法
现在javafx算是官方支持了,而且打包时候有trim
但是即便trim了,还是偏大,但是mono为这种方式做出了一个很好的榜样
反正都大
h*******x
发帖数: 347
31
来自主题: ME版 - zz 公司请人:软件工程师
发信人: houstontx (netprogrammer), 信区: JobHunting
标 题: 公司请人:软件工程师
发信站: BBS 未名空间站 (Sun Aug 3 02:07:35 2008)
软件工程师
地点:休斯顿
时间:ASAP
工作内容:做工程应用软件。stand alone application with web interface.The first task is upgrading a silverlight component. You will learn on the job by yourself if don't have previous experience on silverlight. 基本上内部使用。独立工作--软件不大(50k-100k lines)。
要求:c++(at least read), c# , 2D/3D graphics(at least one out of GDI,
directX, openGL, java2D, java3D), multi-thread programming.
Any other expe
1 (共1页)