Jump to content

vfbb

Members
  • Content Count

    266
  • Joined

  • Last visited

  • Days Won

    30

Posts posted by vfbb


  1. v3.3.2

     

    • Changed Skia4Delphi's default Canvas on Windows to raster based to avoid some issue in specific scenarios; (1)
    • Fixed support to Android 5.0, 5.1 and 6.0 when using Skia4Delphi Canvas;
    • Fixed form draw in Metal when "Zoomed setting" is enabled in iOS/macOS settings when using Skia4Delphi Canvas; (RSP-37935)

     

    1. On Windows, Skia4Delphi has 2 types of Canvas to render the forms: GPU based and raster based (CPU). Before this release, the default was GPU based, however, support for GPU operations is not well implemented by the OS in some scenarios, especially in some VMs. It is not possible to detect these scenarios at runtime, so we changed our default Canvas to raster based (CPU) on Windows. However, you can still force the use of our GPU-based Canvas by adding to the dpr: GlobalUseSkiaRasterWhenAvailable := False;. Both have excellent and higher performance than the FMX but there are specific operations where the GPU-based Canvas is much faster, such as running shaders, mainly created by SkRuntimeEffects.

     

     


  2. github-social-preview.thumb.png.73b8b426b6deb5013f157f21cd3c76c5.png

     

     

    v3.3.0

     

     

    • Added HeightMultiplier property to TSkLabel to change the default line height;
    • Added tag properties to TCustomWordsItem of TSkLabel;
    • Added TItemClickedMessage to intercept the OnClick of all TCustomWordsItem of TSkLabel controls;
    • Improvements in the OnClick triggering of TSkLabel items;
    • Fixed many issues in Windows when using Skia4Delphi Canvas (including combobox dropdown);
    • Fixed wrong colors in iOS with services when using Skia4Delphi Canvas: IFMXTakenImageService, IFMXCameraService, IFMXPhotoLibrary and IFMXShareSheetActionsService;
    • Fixed effects and filters issue in Metal when using Skia4Delphi Canvas;
    • Fixed wrong text size when using Skia4Delphi Canvas (fixing problems with TMemo and TTMSFMXHTMLText);
    • Fixed AV in TSkLabel when the text of a TWordsItem starts with a sLineBreak;
    • Fixed case-insensitive of image formats when saving images;
    • Fixed wrong draws with stroke thickness zero when using Skia4Delphi Canvas;
    • Fixed black screen startup on iOS in simple forms with only shapes when using Skia4Delphi Canvas;
    • Fixed specific cases of performance issues in Windows when using Skia4Delphi Canvas;
    • Fixed projects of RAD Studio 11;
    • Fixed popup menu exception in rasterization mode when using Skia4Delphi Canvas;
    • Fixed modulate color problem before RAD Studio 11.1 (which involves TintColor and TintIconColor properties on mobile);
    • Minor improvements and fixes.

     

     

     

    Github: github.com/skia4delphi/skia4delphi

    Website: skia4delphi.org

    • Like 12

  3. github-social-preview.thumb.png.016f56cbc2e69c8c7c866da90931258c.png

     

     

    v3.0.3

     

    • Fixed PixelFormat on Windows that had wrong colors when drawing in non-client area with Skia4Delphi Canvas;

     

    v3.1.0

     

    • Added BackgroundColor property to words of TSkLabel;
    • Added GrayScale property to TSkSvgBrush;
    • Added build informations for each pre-built binary;
    • Added pre-built binaries for Red Hat;
    • Fixed AV in iOS and MacOS with Metal + Effects/Filters with Skia Canvas enabled;
    • Fixed TSkAnimatedImage and TSkAnimatedPaintBox controls when setting visible to false in Vcl;
    • Fixed TSkSvgBrush.Render in Vcl, was ignoring the opacity parameter;
    • Fixed AV when set the property ControlType=Platform in controls that the platform doesn't support this (like TButton and TLabel) in Android and iOS with Skia Canvas enabled;
    • Fixed build error 'MSB5016: The name "asl.log" contains an invalid character "."' in setup;
    • Fixed build error at installation in RAD Studio 10.3 Rio (caused by wrong rsvars.bat);
    • Fixed build script for other Linux distributions;
    • Fixed statusbar icons of demo in some devices with Android 11;
    • Improved performance of TSkGraphic and TSkSvgGraphic in Vcl (they are responsible for loading new extensions in TPicture);
    • Minor improvements and fixes;

     

    Github: github.com/skia4delphi/skia4delphi

    Website: skia4delphi.org

     

     

     

    • Like 1

  4. 1 hour ago, Fritzew said:

    I'm testing it at Moment with VCL, so a FMX Canvas is out

    Another Question: How thread save is SKIA?   We prepare a lot oaf Drawing-Layers in Threads and put it together after finished. Works well with Cairo.
     

    At Moment I check first the Speed of Drawings to decide if it is worth to switch

    The library can be divided into 3 independent parts:

    • Api: Console, FMX and Vcl;
    • Controls and integration with TBitmap: FMX and Vcl;
    • Skia4Delphi Canvas: FMX.

     

    Skia4Delphi Canvas is an option that, when enabled, the entire application will be rendered by our engine, be it a TButton, a TCircle, the form itself... The benefits of this are: speed, quality and new features. This feature was only made for the FMX because the Vcl system is too restricted for it.

     

    1 hour ago, Der schöne Günther said:

    Good question. The title page states 

    but that's listed under FMX. Does it apply to VCL as well?

     

    Its text was taken from the part of Skia4Delphi Canvas (FMX). It is just clarifying that it is not necessary to adapt any code, the operation will continue the same as an FMX application without the library.

     

    Remembering that the integration with TBitmap (using TBitmap.SkiaDraw) is not related to the Skia4Delphi Canvas feature, they are independent integrations. It will always work on both Vcl and FMX, and is also safe to use on both main and background threads (just like TBitmap).


  5. 54 minutes ago, Fritzew said:

    Is there a way to print a Skia Graphic to Printer on Windows?
    I'm evaluating Ski as a replacement for Cairo. In Cairo on Windows we can directly print  to a Printer HDC


    Direct printer call will work soon for Windows and MacOS

    • Thanks 2

  6. github-social-preview.thumb.png.d341afd023a1f3abc7686b83932ff64f.png

     

     

     

    v3.0.1

     

    • Increase default form quality of Skia4Delphi Canvas in Android and iOS;
    • Improve documentation about Righ-To-Left text rendering with Skia4Delphi Canvas;
    • Fixed demo in Android 11;
    • Fixed exception in ExcludeClipRect;
    • Fixed quality of DrawImage of Skia4Delphi Canvas;
    • Fixed some wrong pixel format in Android and iOS (without metal) that caused wrong colors of TCameraComponet;
    • Fixed opacity of TSkAnimatedImage, TSkLabel and TSkSVG when using Skia4Delphi Canvas;
    • Fixed TSkSVG cache;
    • Fixed compilation with FmxLinux;
    • Fixed FontWeight in FmxLinux;
    • Fixed PDF viewer of demo in FmxLinux;
    • Fixed setup and improve the logs;
    • Fixed build.sh script;
    • Fixed chocolatey package;

     

    v3.0.2

     

    • Fixed pixelformat of TBitmap of Skia4Delphi Canvas;

     

     

     

    Github: github.com/skia4delphi/skia4delphi

    Website: skia4delphi.org

     

     

     

     

    • Like 3
    • Thanks 2

  7. 5 hours ago, Rollo62 said:

    Yes, but it seems that Adobe After Effects is the only tool which is able to create serious animations,
    while no other competitors or free tool exists so far, that could reach that quality.

    That is a little strange I think, since Lottie is not that complex and widely used, I would have expected many other tools in the market.

    I personally dislike Adobe tools, thats why I look for an alternative.

    Ah yes. I don't know of any other tool capable of doing the same. The lottiefiles.com website has a lottie editor but it's very limited and doesn't allow you to create a new animation, just edit it. Remembering that on this same site you will find thousands of free lottie files.


  8. 2 hours ago, Rollo62 said:

    @vfbb

    Great library, thanks for that.

    Especially the Lottie support I find very interesting.

    Yesterday I was checking some Lottie tools, and I must find out that there is no real simple Lottie editor, beside Adobe After Effects.

    Do you have the same experience, or could you recommend some simple animation tools ?

    Rollo, Adobe After Effects alone does not export or import json animation (lottie file). You need to install the Bodymovin plugin for this.


  9. This problem is automatically fixed when you replace the FMX canvas with the Skia4Delphi canvas.

     

    program Poject1;
    
    uses
      System.StartUpCopy,
      FMX.Forms,
      FMX.Types,
      Skia.FMX
      Unit1 in 'Unit1.pas' {Form1};
    
    {$R *.res}
    
    begin
      GlobalUseMetal := True;
      GlobalUseSkia := True;
      Application.Initialize;
      Application.CreateForm(TForm1, Form1);
      Application.Run;
    end.

     


  10. github-social-preview.thumb.png.3d1a79eec7c0e535b651e89a77c7b6bc.png

     

     

    It is with great pleasure that we announce the new version of the Skia4Delphi library. The library has been completely rewritten in this major update and it looks amazing. 

     

    v3.0.0

     

    ·  Skia library version has been updated from Milestone 88 to 98;

    ·  New Skia based Canvas for FMX with GPU rendering support (optionally registered as default) accompanied by the following benefits

        a)    Draw with anti-aliasing on any platform; (currently platforms that use TGPUCanvas like mobiles, and Mac computers when Metal is enabled do not use it)

        b)    Increase the overall graphics performance of your application by up to 50%; (even drawing with higher quality)

        c)    Resize images with better quality; (also based on Form.Quality)

        d)    Support Right-To-Left rendering;

        e)    Fix dozens of inconsistencies in drawings, especially in corners and strokes, such as dashes, and in texts with special emojis;

        f)     Increase the performance of the library in general (controls, drawings, among others...).

    ·  Fully featured demo, with many more fantastic examples;

    ·  Added TSkLabel control with support for: multiple text styles (colors, sizes, fonts), justify alignment, font weight, families fallback, auto-size of width and height, limit number of lines, right-to-left texts, and more;

    ·  Added TSkAnimatedImage (replacing TSkLottieAnimation), with support for Lottie, Telegram Sticker, Animated GIF and Animated WebP files.

    ·  Added WrapMode property to TSkSvg;

    ·  Added full unicode support: grapheme iterators, BiDi regions, among others;

    ·  Added new features to SkParagraph;

    ·  Added SkTypefaceProvider; (custom fonts support in SkParagraph)

    ·  New codecs registered:

        a)    VCL: svg, wbmp, webp and raw images (arw, cr2, dng, nef, nrw, orf, raf, rw2, pef and srw)

        b)    FMX: bmp, gif, ico, wbmp, webp e raw images (arw, cr2, dng, nef, nrw, orf, raf, rw2, pef and srw)

    ·  Added support for SVG creation with the SkSVGCanvas class;

    ·  Exposed SkParticles (provides a way to quickly generate large numbers of drawing primitives with dynamic, animated behavior)

    ·  Added support for creating XPS documents (Windows-only);

    ·  Added Cross-Platform unit tests for console, VCL and FMX, with more over then 250 tests;

    ·  Added Android support for Delphi 10.3 Rio;

    ·  Added installation support via Chocolatey;

    ·  Improved the performance of Lottie animations;

    ·  Improved the performance of OverrideColor in TSkSvg;

    ·  Improved installation process;

    ·  Simplified Skia build with a simple native script;

    ·  Fixed library loading crash that occurred on some 32-bit Androids;

    ·  Fixed support for Android 32 bits in Android App Bundle (.aab) format;

    ·  Fixed iterators; (including path elements iterator)

    ·  Fixed image decoding issue;

    ·  Fixed Lottie files with static images embedded;

    ·  Fixed SVG locale-dependent (couldn't render when default decimal separator was not dot);

    ·  Fixed wrong draw of TSkCustomControl and descendents in FMX, when the property Angle was different than 0;

    ·  Fixed TSkPaintBox draw without clear the surface;

    ·  Fixed installation issue in RAD Studio Trial, Community Edition and Started versions;

    ·  Fixed installation issue in RAD Studio with very large Library Path (especially those that have the ACBr library installed);

    ·  Fixed many others minor issues;

    ·  And much more..

     

    Compatibility break:

    We are in continuous development, so some updates will bring compatibility breaks. So pay attention to version numbers, we use semantic versions (for major versions there is some compatibility break). See some breaking changes in this version:

    a)    Removed support to iOS,  MacOS and Linux in RAD Studio 10.4 Sydney;

    b)    Removed support to RAD Studio XE6;

    c)    Removed the TSkLottieAnimation control, use the TSkAnimatedImage control instead;

    d)    Several changes in API;

     

    Supported platforms:

    ·  RAD Studio 11.0 Alexandria: all platforms

    ·  RAD Studio 10.3 Rio or newer: windows and android

    ·  RAD Studio XE7 or newer: windows

     

    Demo:

     

     

     

     

    Github: github.com/skia4delphi/skia4delphi

    Website: skia4delphi.org

     

     

     

    • Like 15
    • Thanks 4
×