Difference between revisions of "BGRABitmap tutorial"

From Lazarus wiki
Jump to navigationJump to search
m (→‎Other drawing contexts: moved numbers into link)
(Category Lazarus as it is usable with lazarus; Link to English bgrabitmap page; typos,grammar, spelling)
Line 3: Line 3:
 
{{BGRABitmap_tutorial_index}}
 
{{BGRABitmap_tutorial_index}}
  
Welcome to the index of the tutorials for the library [[BGRABitmap/fr|BGRABitmap]]. You can browse tutorials by number with the bar on the top, or by the following categories :
+
Welcome to the index of the tutorials for the [[BGRABitmap|BGRABitmap]] library. You can browse tutorials by number with the bar on the top, or by the following categories:
  
 
=== Install BGRABitmap and draw basic shapes ===
 
=== Install BGRABitmap and draw basic shapes ===
  
The images of TBGRABitmap have drawing functions using floating point coordinates or integer coordinates.
+
TBGRABitmap images have drawing functions using floating point coordinates or integer coordinates.
  
 
* [[BGRABitmap tutorial 1|Installing BGRABitmap (No. 1)]]
 
* [[BGRABitmap tutorial 1|Installing BGRABitmap (No. 1)]]
Line 19: Line 19:
 
=== Textures and scanners ===
 
=== Textures and scanners ===
  
Pixels are a table in memory containing values in the format TBGRAPixel. We can at this level do various operations.
+
Pixels are a table in memory containing values in the TBGRAPixel format. At this level, we can do various operations:
  
 
* [[BGRABitmap tutorial 4|Direct pixel access with Scanline (No. 4)]]
 
* [[BGRABitmap tutorial 4|Direct pixel access with Scanline (No. 4)]]
Line 30: Line 30:
 
=== Other drawing contexts ===
 
=== Other drawing contexts ===
  
It is possible to have other contextes, in order to have other basic drawing functions.
+
It is possible to have other contexts, that provide/allow other basic drawing functions:
  
 
* Standard Canvas (Canvas and CanvasOpacity properties) : avoid using it because of the slowness of conversions of bitmap data
 
* Standard Canvas (Canvas and CanvasOpacity properties) : avoid using it because of the slowness of conversions of bitmap data
Line 55: Line 55:
 
[[Category:Graphics]]
 
[[Category:Graphics]]
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
[[Category: BGRABitmap]]
+
[[Category:BGRABitmap]]
 +
[[Category:Lazarus]]

Revision as of 12:42, 26 February 2013

Deutsch (de) English (en) español (es) français (fr) русский (ru)

Home | Tutorial 1 | Tutorial 2 | Tutorial 3 | Tutorial 4 | Tutorial 5 | Tutorial 6 | Tutorial 7 | Tutorial 8 | Tutorial 9 | Tutorial 10 | Tutorial 11 | Tutorial 12 | Tutorial 13 | Tutorial 14 | Tutorial 15 | Tutorial 16 | Edit

Welcome to the index of the tutorials for the BGRABitmap library. You can browse tutorials by number with the bar on the top, or by the following categories:

Install BGRABitmap and draw basic shapes

TBGRABitmap images have drawing functions using floating point coordinates or integer coordinates.

Textures and scanners

Pixels are a table in memory containing values in the TBGRAPixel format. At this level, we can do various operations:

Other drawing contexts

It is possible to have other contexts, that provide/allow other basic drawing functions:

More

You can use BGRABitmap to improve TAChart rendering.

More classes are available (you need to create them when you need them):

  • TBGRATextEffect, in unit BGRATextFX, allows to prepare the drawing of text line, to add effects like contour and shadow.
  • TBGRALayeredBitmap, in unit BGRALayers, allow to create a multi-layered bitmap. Units BGRAPaintNet and BGRAOpenRaster contain implementations to read and write in Paint.NET format (read only) and OpenRaster format (read and write).
  • Units BGRAGradientScanner and BGRATransform contain scanners to do various effects.
  • Unit BGRAGradients contain procedures to generate gradients and TPhongShading class for Phong shading.
  • TBGRACompressableBitmap, in unit BGRACompressableBitmap, allow to store and compress images.

Other units contient low level functions, and you should not need to use them for a normal usage.