TRichView 21.7 – image scaling modes, barcodes in ReportWorkshop

We’ve released TRichView v21.7, ScaleRichView 12.1.1, ReportWorkshop 5.4.

Trial versions are available here: https://www.trichview.com/download/

Main changes in this update:

  • ability to turn smooth image scaling on/off
  • barcode extension for ReportWorkshop

Image scaling mode

A new property is added to image object: rvepSmoothScaling.
Non-zero value: smooth image scaling (default)
0: simple image scaling

By default, TRichView uses an advanced scaling algorithm to scale images. For most images, it produces good results.
However, sometimes smooth scaling is undesirable, for example, for barcodes or pixel art.
The new property allows to turn smooth scaling on/off.

This image shows the same image resized using different options:

In RichViewActions, users can define this option in the dialog of image properties:

Barcodes in ReportWorkshop

A new add-on is included: <TRichView Dir>\ThirdParty\Barcode\Zint\Source\RVReportZintBarcode.pas.

It uses Zint Barcode Generator for Delphi to display values as barcodes.

Zint Barcode Generator for Delphi is a free open-source library (Apache-2.0 license).
This is a complete port: everything is in Pascal code; external DLLs are not used.
Both Delphi and Lazarus are supported (but I am not sure about minimum required version of Delphi)

This add-on implements two new field types: barcode and qrcode. They are almost identical, except for the default types of barcodes: EAN for barcode, QR code for qrcode.

In a format string, you can specify colors, size, border and margins, font (for barcodes that may include text).

Examples:

Displaying URL as QR code:

{="https://www.trichview.com" qrcode}

Displaying content of VALUE field as QR code, error correction level = H (maximum), dark red color:

{VALUE qrcode "ecc=H color=darkred"}

Displaying content of VALUE field as UPC barcode, 300×50 pixels, without text:

{VALUE barcode "type=upca width=300 height=50 showtext=no"}

Help about this extension:
https://www.trichview.com/help-report/index.html?barcodes_with_zint_for_delphi.htm
Supported types of barcodes:
https://www.trichview.com/help-report/index.html?types_of_barcodes.htm

Sergey Tkachenko

Recent Posts

ANN: IDEInstaller 2.5

IDEInstaller 2.5 includes support for 64-bit Delphi IDE.

1 week ago

ANN: TRichView 23.2 – Markdown in Clipboard

We have released TRichView 23.2 and updates of related components The main new feature in…

2 weeks ago

ANN: RVMedia 11.1 – error handling and UDP streaming

RVMedia 11.1 has been released Main new features: UDP streaming with FFmpeg improved error handling…

3 weeks ago

TRichView 23.1 – RichViewActions for Lazarus for Linux

We have released TRichView 23.1 and updates of related components The main new feature in…

3 months ago

IDEInstaller v2.4

We've released our installer program as freeware with source code:http://www.trichview.com/ideinstall/ It was updated to version…

4 months ago

TRichView 23 – Lazarus for Linux, equations in files

We have released TRichView 23 and updates of related components This update is free for…

4 months ago