Difference between revisions of "LazRGBGraphics/zh CN"

From Free Pascal wiki
Jump to navigationJump to search
 
Line 3: Line 3:
 
=== 关于 ===
 
=== 关于 ===
 
LazRGBGraphics is a run-time package for fast in memory image processing and pixel manipulations (like scan line).
 
LazRGBGraphics is a run-time package for fast in memory image processing and pixel manipulations (like scan line).
 +
 +
<strike>LazRGBGraphics 是运行时包为快速内存图像处理和像素操作(如行扫描)。</strike>
 +
 
The main advantage is direct memory access to bitmap pixels with keeping ability to draw bitmap onto canvas without any time consuming widgetset memory format converting.
 
The main advantage is direct memory access to bitmap pixels with keeping ability to draw bitmap onto canvas without any time consuming widgetset memory format converting.
 +
 +
<strike>其主要优势是存储器直接存取、为位图像素保持性能、绘制位图到画布上没有任何时间消耗、部件工具箱内存格式转换。</strike>
 +
  
 
The main class is TRGB32Bitmap which is analog to TBitmap.
 
The main class is TRGB32Bitmap which is analog to TBitmap.
  
TRGB32Bitmap features:
+
<strike>这个主类是TRGB32Bitmap 模拟TBitmap。</strike>
* load from file, save to file
 
* creating from TBitmap
 
* drawing and stretchdrawing to TCanvas
 
* rotating, stretching
 
* inverting colors
 
* drawing primitives via canvas (TRGB32Canvas) with emphasis on accuracy
 
* per pixel manipulation via GetPixelPtr
 
  
The download contains the package and simple example application.
 
  
This package was designed for cross-platform usage.
+
TRGB32Bitmap 特点:
 +
* 加载文件,保存文件
 +
* 创建 TBitmap
 +
* 绘制和拉伸绘图到TCanvas
 +
* 旋转、拉伸
 +
* 反色
 +
* 通过画布绘制基元(TRGB32Canvas) 并强调准确性
 +
* 每像素通过 GetPixelPtr 处理
 +
 
 +
该下载包含了包和简单的应用程序示例。
 +
 
 +
这个包专为跨平台使用。
  
 
=== 屏幕截图 ===
 
=== 屏幕截图 ===
[[Image:LazRGBGraphics_example.png|Example application]]
+
[[Image:LazRGBGraphics_example.png|应用程序示例]]
[[Image:LazRGBGraphics_canvas.png|Drawing primitives]]
+
[[Image:LazRGBGraphics_canvas.png|绘制基元]]
  
 
=== 作者 ===
 
=== 作者 ===
Line 31: Line 40:
 
   
 
   
 
=== 下载 ===
 
=== 下载 ===
[http://sourceforge.net/projects/lazarus-ccr/files/LazRGBGraphics/ LazRGBGraphics on the Lazarus CCR at SourceForge.net]
+
[http://sourceforge.net/projects/lazarus-ccr/files/LazRGBGraphics/ SourceForge.net 上的 LazRGBGraphics]
  
 
SVN: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/rgbgraphics  
 
SVN: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/rgbgraphics  
  
Or get the tarball [http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/rgbgraphics.tar.gz?view=tar rgbgraphics.tar.gz]
+
或者获得 [http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/rgbgraphics.tar.gz?view=tar rgbgraphics.tar.gz]
  
 
=== 更新日志 ===
 
=== 更新日志 ===
* Version 0.2.1
+
* 版本 0.2.1
** fixed compilation for GTK, use define GTK_POST_0924 if you are using Lazarus 0.9.25 or higher
+
** 修正为GTK编译,使用定义GTK_POST_0924,如果你使用的是Lazarus0.9.25或更高
** fixed saving, loading and copying
+
** 修正保存、载入和复制
** ''requires Lazarus 0.9.24 or higher''
+
** ''需要 Lazarus 0.9.24 或更高''
* Version 0.2
+
* 版本 0.2
** implementation for Carbon
+
** 实现 Carbon
** ''requires Lazarus 0.9.24 or higher''
+
** ''需要 Lazarus 0.9.24 或更高''
* Version 0.1
+
* 版本 0.1
  
 
=== TODO ===
 
=== TODO ===
* halftone stretching 0.3
+
* halftone stretching 0.3 <strike>半色调拉伸</strike>
* polygons 0.3
+
* 多边形 0.3
* masking 0.3
+
* 伪装 0.3
* alpha blending 0.4
+
* alpha 混合 0.4
  
 
=== 说明 ===
 
=== 说明 ===
Status: Alpha
+
状态: Alpha
  
 
问题:  
 
问题:  
* Does not yet work with QT widgetset
+
* Does not yet work with QT widgetset <strike>还不能与 QT 部件工具箱工作</strike>
* tested with win32/64 and gtk2 on Windows XP
+
* tested with win32/64 and gtk2 on Windows XP <strike>测试在Windows XP 下的 win32/64和gtk2</strike>
* tested with carbon and gtk2 on Mac OS X 10.4.7 (Intel)
+
* tested with carbon and gtk2 on Mac OS X 10.4.7 (Intel) <strike>测试在Mac OS X 10.4.7 (Intel) 下的 carbon和gtk2</strike>
* tested with carbon and gtk1 on Mac OS X 10.4.7 (PPC)
+
* tested with carbon and gtk1 on Mac OS X 10.4.7 (PPC) <strike>测试在Mac OS X 10.4.7 (Intel) 下的 carbon和gtk1</strike>
* tested with gtk1 and gtk2 under Linux (Kubuntu 6.06)
+
* tested with gtk1 and gtk2 under Linux (Kubuntu 6.06) <strike>测试在Linux(Kubuntu 6.06)下的 gtk1和gtk2</strike>
* tested with gtk1 under FreeBSD 6.1 (by Almindor)
+
* tested with gtk1 under FreeBSD 6.1 (by Almindor) <strike>测试在FreeBSD 6.1下的 gtk1(由 Almindor)</strike>
* tested on AMD64 with gtk1 Debian/Etch  (by Tanila)
+
* tested on AMD64 with gtk1 Debian/Etch  (by Tanila) <strike>测试在 AMD64 Debian/Etch (AMD64) 下的 gtk1(由 Tanila)</strike>
  
 
=== 安装 ===
 
=== 安装 ===
 
Add LazRGBGraphics package as dependancy to the project and RGBGraphics to the uses section.
 
Add LazRGBGraphics package as dependancy to the project and RGBGraphics to the uses section.
 +
 +
<strike>添加LazRGBGraphics包作为附属物添加到项目和RGBGraphics使用部分。</strike>
  
 
[[Category:Components]]
 
[[Category:Components]]

Revision as of 05:41, 7 May 2014

English (en) français (fr) 中文(中国大陆)‎ (zh_CN)

关于

LazRGBGraphics is a run-time package for fast in memory image processing and pixel manipulations (like scan line).

LazRGBGraphics 是运行时包为快速内存图像处理和像素操作(如行扫描)。

The main advantage is direct memory access to bitmap pixels with keeping ability to draw bitmap onto canvas without any time consuming widgetset memory format converting.

其主要优势是存储器直接存取、为位图像素保持性能、绘制位图到画布上没有任何时间消耗、部件工具箱内存格式转换。


The main class is TRGB32Bitmap which is analog to TBitmap.

这个主类是TRGB32Bitmap 模拟TBitmap。


TRGB32Bitmap 特点:

  • 加载文件,保存文件
  • 创建 TBitmap
  • 绘制和拉伸绘图到TCanvas
  • 旋转、拉伸
  • 反色
  • 通过画布绘制基元(TRGB32Canvas) 并强调准确性
  • 每像素通过 GetPixelPtr 处理

该下载包含了包和简单的应用程序示例。

这个包专为跨平台使用。

屏幕截图

应用程序示例 绘制基元

作者

Tom Gregorovic

授权

Modified LGPL

下载

SourceForge.net 上的 LazRGBGraphics

SVN: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/rgbgraphics

或者获得 rgbgraphics.tar.gz

更新日志

  • 版本 0.2.1
    • 修正为GTK编译,使用定义GTK_POST_0924,如果你使用的是Lazarus0.9.25或更高
    • 修正保存、载入和复制
    • 需要 Lazarus 0.9.24 或更高
  • 版本 0.2
    • 实现 Carbon
    • 需要 Lazarus 0.9.24 或更高
  • 版本 0.1

TODO

  • halftone stretching 0.3 半色调拉伸
  • 多边形 0.3
  • 伪装 0.3
  • alpha 混合 0.4

说明

状态: Alpha

问题:

  • Does not yet work with QT widgetset 还不能与 QT 部件工具箱工作
  • tested with win32/64 and gtk2 on Windows XP 测试在Windows XP 下的 win32/64和gtk2
  • tested with carbon and gtk2 on Mac OS X 10.4.7 (Intel) 测试在Mac OS X 10.4.7 (Intel) 下的 carbon和gtk2
  • tested with carbon and gtk1 on Mac OS X 10.4.7 (PPC) 测试在Mac OS X 10.4.7 (Intel) 下的 carbon和gtk1
  • tested with gtk1 and gtk2 under Linux (Kubuntu 6.06) 测试在Linux(Kubuntu 6.06)下的 gtk1和gtk2
  • tested with gtk1 under FreeBSD 6.1 (by Almindor) 测试在FreeBSD 6.1下的 gtk1(由 Almindor)
  • tested on AMD64 with gtk1 Debian/Etch (by Tanila) 测试在 AMD64 Debian/Etch (AMD64) 下的 gtk1(由 Tanila)

安装

Add LazRGBGraphics package as dependancy to the project and RGBGraphics to the uses section.

添加LazRGBGraphics包作为附属物添加到项目和RGBGraphics使用部分。