From a53a89784c9aaf298542b142290e57384bfb4b66 Mon Sep 17 00:00:00 2001 From: Juliette ELSASS Date: Sun, 31 Mar 2024 23:11:50 +0200 Subject: [PATCH] update website --- docs/doc/AllClasses.html | 20 ++--- docs/doc/AllFunctions.html | 12 +-- docs/doc/AllIdentifiers.html | 32 +++---- .../doc/BGRABitmapTypes.TBGRACustomArrow.html | 61 ++++++++++++- ...BGRABitmapTypes.TBGRACustomPenStroker.html | 31 ++++++- docs/doc/BGRABitmapTypes.html | 2 +- docs/doc/BGRACanvas2D.TBGRACanvas2D.html | 12 +-- docs/doc/BGRACanvas2D.html | 2 +- ...ColorQuantization.TBGRAColorQuantizer.html | 22 ++++- docs/doc/BGRAColorQuantization.html | 2 +- ...GRAGradientScanner.TBGRARandomScanner.html | 27 +++++- docs/doc/BGRAGradientScanner.html | 2 +- .../doc/BGRAGrayscaleMask.TGrayscaleMask.html | 37 +++++++- docs/doc/BGRAGrayscaleMask.html | 2 +- docs/doc/BGRAOpenGL.TBGLFrameBuffer.html | 38 +++++++- ...BGRAPalette.TBGRACustomColorQuantizer.html | 42 +++++++-- docs/doc/BGRAPath.TBGRAPath.html | 25 +++++- docs/doc/BGRAPath.html | 2 +- docs/doc/BGRASVG.TBGRASVG.html | 45 +++++++++- docs/doc/BGRASVG.html | 2 +- docs/doc/BGRASVGShapes.TSVGContent.html | 50 ++++++++++- docs/doc/BGRASVGShapes.html | 2 +- .../doc/BGRAText.TBGRASystemFontRenderer.html | 82 ++++++++---------- docs/doc/BGRAUTF8.TGlyphCursorUtf8.html | 49 +++++++++-- docs/doc/BGRAUTF8.html | 30 +++++-- ...BGRAWinResource.TWinResourceContainer.html | 26 +++++- docs/doc/BGRAWinResource.html | 2 +- docs/doc/image_0.png | Bin 14429 -> 15408 bytes docs/doc/image_1.png | Bin 14429 -> 5018 bytes docs/doc/image_2.png | Bin 0 -> 14429 bytes docs/doc/image_3.png | Bin 0 -> 232138 bytes docs/doc/image_4.png | Bin 0 -> 4048 bytes docs/doc/image_5.png | Bin 0 -> 19264 bytes docs/doc/image_6.svg | 10 +++ docs/doc/index.html | 14 +++ docs/doc/introduction.html | 14 +++ docs/doc/pasdoc.css | 30 +++---- docs/doc/tipuesearch/tipuesearch_content.js | 45 +++++----- 38 files changed, 612 insertions(+), 160 deletions(-) create mode 100644 docs/doc/image_2.png create mode 100644 docs/doc/image_3.png create mode 100644 docs/doc/image_4.png create mode 100644 docs/doc/image_5.png create mode 100644 docs/doc/image_6.svg diff --git a/docs/doc/AllClasses.html b/docs/doc/AllClasses.html index 6091635..c1b2e6e 100644 --- a/docs/doc/AllClasses.html +++ b/docs/doc/AllClasses.html @@ -399,7 +399,7 @@

All Structures

TBGRACanvas2D BGRACanvas2D -

Implementation of Canvas2d similar to HTML.

+

Implementation of a canvas similar to HTML Canvas2d.

TBGRACanvasState2D @@ -434,7 +434,7 @@

All Structures

TBGRAColorQuantizer BGRAColorQuantization -

Implementation of color quantization

+

Implementation of color quantization.

TBGRAColorTree @@ -474,7 +474,7 @@

All Structures

TBGRACustomArrow BGRABitmapTypes -

Generic class configuring and rendering an arrow

+

Generic class configuring and rendering an arrow.

TBGRACustomBitmap @@ -829,7 +829,7 @@

All Structures

TBGRAPath BGRAPath -

Path (in 2D) that allows to define custom shapes that can be drawn

+

Path (in 2D) that allows to define custom shapes that can be drawn.

TBGRAPathCursor @@ -894,7 +894,7 @@

All Structures

TBGRARandomScanner BGRAGradientScanner -

Scanner of random color

+

Scanner of random color.

TBGRAReaderAvif @@ -1059,7 +1059,7 @@

All Structures

TBGRASVG BGRASVG -

Reading, writing and rendering for an SVG document

+

Reading, writing and rendering for an SVG document.

TBGRASVGOriginalDiff @@ -1564,7 +1564,7 @@

All Structures

TGlyphCursorUtf8 BGRAUTF8 -

Cursor to go through a UTF8 text glyph by glyph

+

Cursor to go through a UTF8 text glyph by glyph.

TGlyphUtf8 @@ -1574,7 +1574,7 @@

All Structures

TGrayscaleMask BGRAGrayscaleMask -

8-bit grayscale image

+

8-bit grayscale image.

TGrayscaleTask @@ -2179,7 +2179,7 @@

All Structures

TSVGContent BGRASVGShapes -

Content for an SVG element

+

Content for an SVG element.

TSVGCustomElement @@ -2464,7 +2464,7 @@

All Structures

TWinResourceContainer BGRAWinResource -

Container for Windows resources

+

Container for Windows resources.

TWordXYZA diff --git a/docs/doc/AllFunctions.html b/docs/doc/AllFunctions.html index b21e405..ed160b1 100644 --- a/docs/doc/AllFunctions.html +++ b/docs/doc/AllFunctions.html @@ -2439,17 +2439,17 @@

All Functions and Procedures

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with specified text direction.

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with specified text direction.

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with automatic text direction.

ApplyIntensityFast @@ -4664,7 +4664,7 @@

All Functions and Procedures

GetUTF8DisplayOrder BGRAUTF8 -

 

+

Display order of characters.

GetXPixMapThumbnail @@ -6098,7 +6098,7 @@

All Functions and Procedures

UTF8EmbedDirection BGRAUTF8 -

 

+

Adds special unicode characters to make it a quote in a specific direction.

UTF8Length @@ -6123,7 +6123,7 @@

All Functions and Procedures

UTF8OverrideDirection BGRAUTF8 -

 

+

Adds special unicode characters around the text to change it's direction.

UTF8ReverseString diff --git a/docs/doc/AllIdentifiers.html b/docs/doc/AllIdentifiers.html index cba0511..b49c97d 100644 --- a/docs/doc/AllIdentifiers.html +++ b/docs/doc/AllIdentifiers.html @@ -2479,17 +2479,17 @@

All Identifiers

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with automatic text direction.

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with specified text direction.

AnalyzeBidiUTF8 BGRAUTF8 -

 

+

Returns an array with bidirectional analysis with specified text direction.

AnimatedChunkTypes @@ -6484,7 +6484,7 @@

All Identifiers

GetUTF8DisplayOrder BGRAUTF8 -

 

+

Display order of characters.

GetXPixMapThumbnail @@ -10318,7 +10318,7 @@

All Identifiers

TBGRACanvas2D BGRACanvas2D -

Implementation of Canvas2d similar to HTML.

+

Implementation of a canvas similar to HTML Canvas2d.

TBGRACanvasState2D @@ -10363,7 +10363,7 @@

All Identifiers

TBGRAColorQuantizer BGRAColorQuantization -

Implementation of color quantization

+

Implementation of color quantization.

TBGRAColorQuantizerAny @@ -10413,7 +10413,7 @@

All Identifiers

TBGRACustomArrow BGRABitmapTypes -

Generic class configuring and rendering an arrow

+

Generic class configuring and rendering an arrow.

TBGRACustomBitmap @@ -10883,7 +10883,7 @@

All Identifiers

TBGRAPath BGRAPath -

Path (in 2D) that allows to define custom shapes that can be drawn

+

Path (in 2D) that allows to define custom shapes that can be drawn.

TBGRAPathAny @@ -11053,7 +11053,7 @@

All Identifiers

TBGRARandomScanner BGRAGradientScanner -

Scanner of random color

+

Scanner of random color.

TBGRAReaderAvif @@ -11218,7 +11218,7 @@

All Identifiers

TBGRASVG BGRASVG -

Reading, writing and rendering for an SVG document

+

Reading, writing and rendering for an SVG document.

TBGRASVGOriginalDiff @@ -12208,7 +12208,7 @@

All Identifiers

TGlyphCursorUtf8 BGRAUTF8 -

Cursor to go through a UTF8 text glyph by glyph

+

Cursor to go through a UTF8 text glyph by glyph.

TGlyphPointCurveMode @@ -12253,7 +12253,7 @@

All Identifiers

TGrayscaleMask BGRAGrayscaleMask -

8-bit grayscale image

+

8-bit grayscale image.

TGrayscaleTask @@ -13553,7 +13553,7 @@

All Identifiers

TSVGContent BGRASVGShapes -

Content for an SVG element

+

Content for an SVG element.

TSVGCustomElement @@ -14033,7 +14033,7 @@

All Identifiers

TWinResourceContainer BGRAWinResource -

Container for Windows resources

+

Container for Windows resources.

TWordBreakHandler @@ -14453,7 +14453,7 @@

All Identifiers

UTF8EmbedDirection BGRAUTF8 -

 

+

Adds special unicode characters to make it a quote in a specific direction.

UTF8Length @@ -14478,7 +14478,7 @@

All Identifiers

UTF8OverrideDirection BGRAUTF8 -

 

+

Adds special unicode characters around the text to change it's direction.

UTF8ReverseString diff --git a/docs/doc/BGRABitmapTypes.TBGRACustomArrow.html b/docs/doc/BGRABitmapTypes.TBGRACustomArrow.html index 4cb14e3..a7eadb4 100644 --- a/docs/doc/BGRABitmapTypes.TBGRACustomArrow.html +++ b/docs/doc/BGRABitmapTypes.TBGRACustomArrow.html @@ -25,7 +25,66 @@

Declaration

Description

-Generic class configuring and rendering an arrow

+Generic class configuring and rendering an arrow.

+

+ + +

Example using different kind of arrows: + +

arrows + +

+ +
+uses BGRABitmap, BGRABitmapTypes;
+
+procedure TForm1.FormPaint(Sender: TObject);
+var bmp:TBGRABitmap;
+  w: single;
+begin
+  bmp := TBGRABitmap.Create(ClientWidth,ClientHeight,BGRAWhite);
+  w := sqrt(ClientWidth*ClientHeight)/50;
+
+  // diagonal arrow
+  bmp.Arrow.StartAsTail;
+  bmp.Arrow.StartRepeatCount := 2;
+  bmp.Arrow.EndAsTriangle(0.25,False,True);
+  bmp.DrawPolyLineAntialias(
+    bmp.ComputeOpenedSpline([PointF(80,80),PointF(ClientWidth-160,ClientHeight div 2),PointF(ClientWidth-80,ClientHeight-20)],ssCrossingWithEnds),
+    BGRABlack,w);
+  bmp.Arrow.StartRepeatCount := 1; //restore default value
+
+  // top arrow
+  bmp.Arrow.StartAsClassic(True,True,3);
+  bmp.Arrow.StartOffsetX := -8;
+  bmp.Arrow.EndAsClassic(False,True);
+  bmp.DrawPolyLineAntialias(
+    bmp.ComputeOpenedSpline([PointF(40,60),PointF(ClientWidth div 3,20),PointF(ClientWidth-80,40)],ssCrossingWithEnds),
+    BGRABlack,w);
+  bmp.Arrow.StartOffsetX := 0; //restore default value
+
+  // left arrow
+  bmp.Arrow.StartAsClassic(True,True);
+  bmp.Arrow.StartSize := PointF(1,2);
+  bmp.Arrow.StartOffsetX := -5.5;
+  bmp.Arrow.StartRepeatCount := 3;
+  bmp.Arrow.EndAsTriangle(0.75);
+  bmp.DrawLineAntialias(20,90, 80,ClientHeight-40,
+    BGRABlack,w);
+  bmp.Arrow.StartSize := PointF(2,2); //restore default values
+  bmp.Arrow.StartOffsetX := 0;
+  bmp.Arrow.StartRepeatCount := 1;
+
+  // right arrow
+  bmp.Arrow.StartAsClassic;
+  bmp.Arrow.EndAsClassic(False,False,2);
+  bmp.DrawLineAntialias(ClientWidth-40,40,ClientWidth-40,ClientHeight-80,BGRABlack,w);
+
+  bmp.Draw(Canvas,0,0);
+  bmp.Free;
+end;
+ +

Hierarchy

Overview

diff --git a/docs/doc/BGRABitmapTypes.TBGRACustomPenStroker.html b/docs/doc/BGRABitmapTypes.TBGRACustomPenStroker.html index db2ec78..1702b51 100644 --- a/docs/doc/BGRABitmapTypes.TBGRACustomPenStroker.html +++ b/docs/doc/BGRABitmapTypes.TBGRACustomPenStroker.html @@ -418,7 +418,36 @@

Properties

-Stroke transformation matrix (applied only to stroke and not to path points)

+Stroke transformation matrix.

+

+ + +

This matrix is applied only to stroke and not to path points. + +

Example of skew transform: + +

pen_skew + +

+ +
+uses BGRABitmapTypes, BGRATransform;
+
+procedure TForm1.BGRAVirtualScreen1Redraw(Sender: TObject; Bitmap: TBGRABitmap);
+var
+  i: Integer;
+begin
+  for i := 0 to 5 do
+  begin
+    Bitmap.Pen.StrokeMatrix := AffineMatrixSkewXDeg(-10*i);
+    Bitmap.Pen.LineCap := pecSquare;
+    Bitmap.DrawLineAntialias(40,40+i*80,Bitmap.Width div 2-40,40+i*80, BGRABlack,30);
+    Bitmap.Pen.LineCap := pecRound;
+    Bitmap.DrawLineAntialias(Bitmap.Width div 2+40,40+i*80,Bitmap.Width-40,40+i*80, BGRABlack,30);
+  end;
+end;
+ +

diff --git a/docs/doc/BGRABitmapTypes.html b/docs/doc/BGRABitmapTypes.html index f5c0ebf..578fa5c 100644 --- a/docs/doc/BGRABitmapTypes.html +++ b/docs/doc/BGRABitmapTypes.html @@ -79,7 +79,7 @@

Description

- + diff --git a/docs/doc/BGRACanvas2D.TBGRACanvas2D.html b/docs/doc/BGRACanvas2D.TBGRACanvas2D.html index 0a75d75..1b0a80a 100644 --- a/docs/doc/BGRACanvas2D.TBGRACanvas2D.html +++ b/docs/doc/BGRACanvas2D.TBGRACanvas2D.html @@ -25,11 +25,15 @@

Declaration

Description

-Implementation of Canvas2d similar to HTML.

+Implementation of a canvas similar to HTML Canvas2d.

-

Comparison between TBGRACanvas2D and Javascript HTML canvas: +

TBGRACanvas2D is the surface to use when rendering with TBGRASVG, TBGRACustomTypeWriter and TBGRAVectorizedFont. + +

Comparison between TBGRACanvas2D and Javascript HTML canvas: + +

blue_circular_bevel_js

@@ -140,9 +144,7 @@

Description

Class TBGRACustomArrowGeneric class configuring and rendering an arrowGeneric class configuring and rendering an arrow.
Class TBGRACustomBitmap
-

- -

blue_circular_bevel_js

+

Hierarchy