Jump to content

vfbb

Members
  • Content Count

    266
  • Joined

  • Last visited

  • Days Won

    30

Everything posted by vfbb

  1. vfbb

    Is there a way to outline text in a TLabel?

    You can just use the StrokeColor property of TSkLabel from Skia4Delphi library:
  2. vfbb

    iOS Metal Api form doesn't fit on screen

    Hi @enesgeven! I didn't find this issue in the quality portal so I reported it: https://quality.embarcadero.com/browse/RSP-37935 Just a tip: This issue is fixed in the latest version of Skia4Delphi (3.3.2). Not only this problem but a dozen others. Our Metal is as stable as OpenGL. Just enable Skia4Delphi as your app's renderer, and all issues will be resolved.
  3. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    The problem was fixed in new version 3.3.2. Fix: We support Android 5+
  4. 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
  5. vfbb

    ANN: Skia4Delphi v3.3.0

    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) 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.
  6. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    @John van de Waeter I confirmed the problem. I reported it on GitHub, you can follow it there: https://github.com/skia4delphi/skia4delphi/issues/94
  7. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    It supports Android 4.1 JellyBean+. I will test it ASAP.
  8. vfbb

    ANN: Skia4Delphi v3.3.0

    v3.3.1 Fixed TSkLabel click in Vcl; Fixed bitmaps starting with garbage when using Skia4Delphi Canvas; Fixed AV in TSkLabel and TSkTextLayout in specific cases involving $13 char; Fixed AV drawing uninitialized bitmaps when using Skia4Delphi Canvas;
  9. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    @ginnix Fixed this issue in new version v3.3.0
  10. vfbb

    iOS Metal Api FlipHorizontal Crash

    @eg1 This problem will be automatically fixed if you use the last version of skia4delphi. I reported the problem and solution to embarcadero too.
  11. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    @ginnix Confirmed the issue! I reported the problem on Github, you can follow it there: https://github.com/skia4delphi/skia4delphi/issues/81
  12. 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
  13. vfbb

    ANN: Skia4Delphi v3.0.2

    Hi @b1ol, the default HitTest of TSkSvg and TSkAnimatedImage is False. So, you need to set the property HitTest to True to use the mouse operations.
  14. vfbb

    ANN: Skia4Delphi v3.0.2

    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
  15. vfbb

    ANN: Skia4Delphi v3.0.2

    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. 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).
  16. vfbb

    ANN: Skia4Delphi v3.0.2

    @Fritzew It is worth mentioning that currently prints already work normally with Skia4Delphi Canvas enabled, but internally the native Canvas of FMX is used during prints. In addition, it is possible to export the document via PDF and XPS.
  17. vfbb

    ANN: Skia4Delphi v3.0.2

    Direct printer call will work soon for Windows and MacOS
  18. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    @ginnix Fixed in new release v3.0.2
  19. vfbb

    Skia4Delphi v3.0.0

    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
  20. vfbb

    Skia4Delphi v3.0.0

    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.
  21. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Thanks for the report. I'll check TCamera again. Any new issue you can report us in GitHub
  22. vfbb

    Skia4Delphi v3.0.0

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

    iOS, Metal, Bitmaps, RGB becomes BGR?

    Your TImage is already using Skia Canvas. When you replace the default Canvas of FMX to the Skia4Delphi Canvas (by setting GlobalUseSkia := True;), every control in form will be draw automatically using the Skia Canvas, including the TImage.
  24. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    The GetIt is out of date yet (version 2.0.1). You should download version 3, Skia4Delphi_3.0.0_Setup.exe, which you will find on the releases page: https://github.com/skia4delphi/skia4delphi/releases
  25. vfbb

    iOS, Metal, Bitmaps, RGB becomes BGR?

    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.
×