This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uses | |
| Skia, Skia.FMX.Graphics; | |
| procedure TForm1.SkPaintBox1Draw(ASender: TObject; const ACanvas: ISkCanvas; | |
| const ADest: TRectF; const AOpacity: Single); | |
| var | |
| LTextLayout: TSkTextLayout; | |
| LPaint: ISkPaint; | |
| begin | |
| LTextLayout := TSkTextLayout.Create; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function GetResizedImage(const AImage: ISkImage; ATargetWidth, ATargetHeight: Integer; | |
| ASamplingOptions: TSkSamplingOptions; AProgressive: Boolean = True): ISkImage; | |
| function MakeResized(const AImage: ISkImage; ANewWidth, ANewHeight: Integer): ISkImage; | |
| var | |
| LSurface: ISkSurface; | |
| begin | |
| LSurface := TSkSurface.MakeRaster(ANewWidth, ANewHeight); | |
| LSurface.Canvas.Clear(0); | |
| LSurface.Canvas.Scale(ANewWidth / AImage.Width, ANewHeight / AImage.Height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program SkiaBlur2; | |
| uses | |
| System.StartUpCopy, | |
| FMX.Forms, | |
| FMX.Skia, | |
| Unit1 in 'Unit1.pas' {Form1}; | |
| {$R *.res} |
OlderNewer