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
| _ZN6Mormot4Core10Interfaces8FindGuidEPPNS1_17TInterfaceFactoryEiyy PROC | |
| ; WEAK _ZN6Mormot4Core10Interfaces8FindGuidEPPNS1_17TInterfaceFactoryEiyy | |
| push rbp ; 0000 _ 55 | |
| mov rbp, rsp ; 0001 _ 48: 89. E5 | |
| mov qword ptr [rbp-20H], rcx ; 0004 _ 48: 89. 4D, E0 | |
| mov qword ptr [rbp-18H], rdx ; 0008 _ 48: 89. 55, E8 | |
| mov dword ptr [rbp-0CH], esi ; 000C _ 89. 75, F4 | |
| mov qword ptr [rbp-8H], rdi ; 000F _ 48: 89. 7D, F8 | |
| ; Note: Immediate operand could be made smaller by sign extension | |
| cmp dword ptr [rbp-0CH], 0 ; 0013 _ 81. 7D, F4, 00000000 |
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
| unit CustomCardGrid; | |
| interface | |
| uses | |
| System.SysUtils, System.Types, System.UITypes, System.Classes, | |
| System.Generics.Collections, System.Math, FMX.Types, FMX.Controls, | |
| FMX.Graphics, FMX.Objects, FMX.Layouts, FMX.Ani, FMX.Forms, FMX.Platform, | |
| System.Skia, FMX.Skia.Canvas, MTGCore, CardPriceTypes; |
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} |
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
| unit PixelCopy.Android; | |
| interface | |
| uses | |
| Androidapi.JNI.GraphicsContentViewText, | |
| FMX.Graphics; | |
| function CaptureWindowPixels(const AWindow: JWindow): TBitmap; | |
| function CaptureSurfaceHolderPixels(const ASurfaceHolder: JSurfaceHolder): TBitmap; |
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); |
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
| 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; |
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 KeyName(const AKey: Word): string; | |
| begin | |
| case AKey of | |
| 1: Result := 'vkLButton'; | |
| 2: Result := 'vkRButton'; | |
| 3: Result := 'vkCancel'; | |
| 4: Result := 'vkMButton'; | |
| 5: Result := 'vkXButton1'; | |
| 6: Result := 'vkXButton2'; | |
| 8: Result := 'vkBack'; |
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 | |
| System.UITypes, Skia; | |
| function GetResizedImage(const AImage: ISkImage; const ANewWidth, ANewHeight: Integer): ISkImage; | |
| var | |
| LSurface: ISkSurface; | |
| begin | |
| LSurface := TSkSurface.MakeRaster(ANewWidth, ANewHeight); | |
| LSurface.Canvas.Clear(TAlphaColors.Null); | |
| 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
| unit Skia.FitAndCrop; | |
| interface | |
| uses | |
| System.SysUtils, System.Types, System.UITypes, System.Classes, System.Math, | |
| System.Math.Vectors, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, | |
| FMX.Objects, Skia, Skia.FMX; | |
| type |
NewerOlder