Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.097 Beiträge
 
Delphi 12 Athens
 
#4

AW: Pixel zählen mit Scanline

  Alt 4. Mai 2012, 21:45
Und auch nur, wenn man auf ein 3*8-Bit-RGB-Pixel drauf zugreift.

32 Bit pro Pixel sind 4 Byte
24 Bit nur 3 Byte (RGB)
und dann gibt es auch noch andere Formate


Delphi-Quellcode:
      ScanLine^[x] := color;
      color := BGRToColor( color );
      if color = ClBlack then
        inc( Anzahl2 );
Willst du dir Pixel auf eine Zufallsfarbe setzen oder zählen?
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat