同人星球BBS -> 游戏制作 -> [函式]Delphi用高速图形处理函式Graphics32 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

djgcn 07-02-11 01:37

Graphics32是个BCB/Delphi/Kylix用的2D绘图库,
其功能特殊之处,在於在无须硬体加速的情况下,
能够有接近於一百倍Delphi內置绘图库的高速度。

首页:http://www.graphics32.org/wiki/

它的原理除了部份计算公式的改善外,更重要的著眼点是,
完全基於32位元的图形运算,其原理在於。
- 在32位元的环境下,大部分的函式皆有最好的速度表现
- 基於四位元组为基础的记忆存取为最高速
- 图片的Alpha混成在32位元下速度最快
- 单一化的接口和处理方式
- 完全基於32位元,可应用更多最佳化的方式

这是原文的功能列表:
Fast per-pixel access up to 100 times faster compared to standard TBitmap?;
High-performance Bitmap alpha blending (including per-pixel alpha blending);
Pixel, line and polygon antialiasing with sub-pixel accuracy (combined with alpha blending);
Arbitrary polygon transformations and custom fillings;
Bitmap resampling with high quality reconstruction filters (e.g. Lanczos, Cubic, Mitchell);
A unique state-of-the-art rasterization system;
Affine transformations of bitmaps: rotations, scaling, etc with sub-pixel accuracy;
Arbitrary projective transformations of bitmaps;
Arbitrary remapping transformations of bitmaps (e.g. for Warping, Morphing);
Flexible supersampling implementation for maximum sampling quality;
Flicker-free image displaying components with optimized double buffering via advanced MicroTiles? based repaint optimizer;
Multiple customizible easy-to-use overlay layers;
Locking of bitmaps for safe multithreading;
A property editor for RGB and alpha channel loading;
Design-time loading of image formats supported by standard TPicture;
Works on Borland Delphi, C++ Builder and Kylix.

某些基於Pascal的新兴程式语言如Cobra已开始採用此函式库作为绘图库,
如果你是Delphi用户或习惯於Pascal语法,务必试试这个引擎。

littlewater 07-02-11 09:12
这个库是类似于第三方绘图功能组件么?
这个和自己直接在DELPHI下用DX有什么不同?

littlewater 07-02-11 11:30
看了一下,好像是以图象处理为主,当然既然速度比较快的话,应该也比较适合于游戏……
另外好不容易下载了,编译好,发现DEMO的几个范例都是QXX的,结果搞了半天实际上范例是给LINUX用的,如果要在WIN下面使用,应该在范例中修改所有QXXX为XXX,比如QForm改为Form即可……
PS:偶是PASCAL、DELPHI白痴。。。


查看完整版本: [-- [函式]Delphi用高速图形处理函式Graphics32 --] [-- top --]

Powered by PHPWind v5.3 Code © 2003-05 PHPWind
Time 0.043995 second(s),query:4 Gzip enabled

You can contact us