AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 00:47

Parameter dieser Suchanfrage:

Suche in Thema: Compute screen proportion
Suche alle Beiträge, die von "WojTec" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 7 von insges. 7 Treffern
Suche benötigte 0.002s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 23. Jul 2012
    @Furtbichler, I tested a few inputs and I see 0.45 is ok. Could you confirm?
  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 23. Jul 2012
    Hm, it's a bit wrong (721:4) :o
  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 23. Jul 2012
    Here you are :)

    function GetScreenAspectRatio(const AWidth, AHeight: Cardinal): Single;

    function LCD(v1, v2: Cardinal): Word;
    begin
    Result := 0;

    if (v1 > 0) and (v2 > 0) then
    begin
  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 22. Jul 2012
    I modified @Amateurprofi code to support x:10, changed to return float and wrote format function:

    function GetScreenProportion(const AWidth, AHeight: Cardinal): string;
    var
    AspectRatio: Single;
    X, Y: Extended;
    begin
    AspectRatio := GetScreenAspectRatio(AWidth, AHeight);
    X := Int(AspectRatio);
    Y := Frac(AspectRatio) * 100;
  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 22. Jul 2012
    Thanks, but for eg. 1024x768 returns 'nonstandard' :(
  • Forum: Multimedia

    Re: Compute screen proportion

      Delphi
      by WojTec, 21. Jul 2012
    Next attempt:

    function ToFrac(const AValue: Extended; const ADivisor: Word; const AFrac: Boolean): string;
    var
    A, B: Integer;
    I, F: Extended;
    begin
    B := ADivisor;
    I := Int(AValue);
    F := Frac(AValue);
  • Forum: Multimedia

    Compute screen proportion

      Delphi
      by WojTec, 21. Jul 2012
    I'm just working with images in PS and start think about image proportions. Some images has quite big size and I'm interested what is its proportion. So, I ran Delphi and wrote:

    var
    Ratio: Cardinal;
    Min, Max: Cardinal;
    begin
    Min := Math.Min(AWidth, AHeight);
    Max := Math.Max(AWidth, AHeight);
    Ratio := Max - Min;


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=WojTec&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=169462
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:03 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz