How to internally deal with custom ppi?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #59038
    Support
    Keymaster

    Hello

    Look, maybe this code can help you to save original size:

    Code:
    uses sSkinManager, sVclUtils;

    var
    iPPI: integer;

    if DefaultManager.IsActive then begin
    if DefaultManager.Options.ScaleMode = smVCL then
    iPPI := DefaultPPI
    else
    iPPI := DefaultManager.Options.PixelsPerInch
    end
    else
    iPPI := 96;

    SaveMainFormWidthHeight(Width * 96 div iPPI, Height * 96 div iPPI);

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.