Qt5: implemented SetBitmapScaleRatio, issue #41299

This commit is contained in:
zeljan1 2024-12-31 20:10:36 +01:00
parent 1aed29d27c
commit 59f26575d6
2 changed files with 7 additions and 0 deletions

View File

@ -868,6 +868,12 @@ begin
// todo
end;
procedure TQtWidgetSet.SetBitmapScaleRatio(aBMP: HBITMAP; const AScaleRatio: double);
begin
if IsValidGDIObject(aBmp) then
QImage_setDevicePixelRatio(TQtImage(aBmp).Handle, AScaleRatio);
end;
procedure TQtWidgetSet.SetEventHandlerFlags(AHandler: PEventHandler;
NewFlags: dword);
var

View File

@ -73,6 +73,7 @@ procedure RemovePipeEventHandler(var AHandler: PPipeEventHandler); override;
procedure RemoveProcessEventHandler(var AHandler: PProcessEventHandler); override;
procedure SetEventHandlerFlags(AHandler: PEventHandler; NewFlags: dword); override;
procedure SetBitmapScaleRatio(aBmp: HBITMAP; const AScaleRatio: double); override;
function SetComboMinDropDownSize(Handle: HWND; MinItemsWidth, MinItemsHeight, MinItemCount: integer): boolean; override;
procedure SetRubberBandRect(const ARubberBand: HWND; const ARect: TRect); override;