Autor Beitrag
navarro2010
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.01.11 18:20 
Kann mir jemand sagen, aus vielen Farben eine Bitmap maximal besteht?
Wie viele Bits pro Pixel braucht man, um diese Farben abzuspeichern?


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 17.01.2011 um 17:25
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 17.01.11 18:24 
Das kommt darauf an. Bei scharz-weiß-Bitmaps benötigt man 1 Bit, bei 16-Bit-Bitmaps 16 (also 256 Farben), bei 24-Bit-Bitmaps (afaik standard in der Windows-Welt) 24 Bit, also 2^24 Farben. Bei 32Bit-Bitmaps ändert sich daran nichts - das vierte Byte ist dann der Alphakanal für die Transparenz.

_________________
We are, we were and will not be.

Für diesen Beitrag haben gedankt: navarro2010
navarro2010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25
Erhaltene Danke: 1



BeitragVerfasst: Mo 17.01.11 18:31 
Also maximal 2^24 Farben mit 24 Bits pro Pixel?
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Mo 17.01.11 19:20 
ja

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)