| |
|
|
 Manfred Barei | ¡Hola,
Por favor, una vez Testen, en me kommt siempre una falscher Valor. KompilierenMarcaSeparaciónDeclare Bild&
windowtitle "Farbtiefe"
cls
usefont "MS Sans Serif",16,0,0,0,0
setdialogfont 1
Bild& = @Create("hPic",-1,"Test.bmp") das Bild hat 16 Farben = 8-Bit
DrawPic Bild&,0,0;0
DeleteObject Bild&
Locate 10, 1
print "Farbtiefe : " + @Str$(%BmpB) + "-Bit" angezeigt werden 32-Bit
waitinput
 | | | Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 08.08.2008 ▲ |
| |
| |  | Das se más el Valor des hPics ser, no des BMPs.
[offtopic] Yo sehe grad el Yo %BmpB übersehen habe beim XPSE, Abhilfe bringt zwar {$pushkeyword %BmpB} aber: heul! (werd Yo wohl nachreichen necesario...) @Manfred: Hättest el no 24 Stunden früher testen puede.  [/offtopic] |
| | | | |
| |  Manfred Barei | sí IF, Yo quería ya gestern, bin pero no mehr dazu gekommen.
Desde que el Picturewahl.pcu erweitern voluntad costumbre Yo esta Systemvariable. Aber ellos liefert una falschen Valor ya que de sieht. 
Saludo |
| | | Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 08.08.2008 ▲ |
| |
| |  | Manfred Barei
sí IF, Yo quería ya gestern, bin pero no mehr dazu gekommen.
Klar, kein Problema - aber sag hast Usted todavía mehr solche nützlichen Informationen parat?  |
| | | | |
| |  Jörg Sellmeyer | Selbst si una Schwarz-Weiß-Bild (1bit/pixel) es, zeigt el Valor 32 a. Como muß Roland wohl igual con el Patchcode anfangen.  |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08.08.2008 ▲ |
| |
| |  Frank Abbing | El Bittiefe uno Bmp-Expediente kannst du notfalls auch a mano auslesen. Dieser Valor kann 1, 4, 8, 16, 24 oder 32 ser. 24 wären also 24 Bit, qué bedeutet, dass para cada Bildpunkt drei Bytes reserviert son. KompilierenMarcaSeparación |
| |
| |  Manfred Barei | y todavía eins, el Farbanzahl se auch no correcto adecuado. Siehe Code: KompilierenMarcaSeparaciónDeclare Bild&
windowtitle "Farbtiefe"
cls
usefont "MS Sans Serif",16,0,0,0,0
setdialogfont 1
Bild& = @Create("hPic",-1,"Test.bmp") das Bild hat 16 Farben = 8-Bit
DrawPic Bild&,0,0;0
DeleteObject Bild&
Locate 10, 1
print "Farbtiefe : " + @Str$(%BmpB) + "-Bit" angezeigt werden 32-Bit
print "Farbanzahl : " + @Str$(&BmpCol) Farbanzahl haut auch nicht hin
waitinput
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 | | 08.08.2008 ▲ | |
| |
| |  Jac de Lad | Tal vez isses sí RLE-komprimiert y macht así Problemas? |
| | | Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 08.08.2008 ▲ |
| |
| |  Frank Abbing | Nein, habs ebenfalls festgestellt... |
| | | | |
| |  | Habs doch oben ya erwähnt, el Werte beziehen se el hPic.
Werte después de LoadBmp veces getestet?
Yo glaube Roland hatte así algo erwähnt como el el Farbtiefe el hPics se después de el eingestellten Desktopfarbtiefe orientiert. Puedo me vorstellen el create("HPIC" una hPic producido, y darauf el Bild läd. Das geladene Bild se esta sí en el hPic-Farbtiefe konvertiert, después de Laden ha lo entonces el "korrekt-angezeigten" Werte, auch si la Expediente otro Inhalt trägt. 
Un Incluir welche de verschiedenen Bildtypen Características wiedergibt wäre hier hilfreich - oder Usted spielst con GDI herum.  |
| | | | |
| |  RGH | IF ha (ausnahmsweise ;) ) bastante: Hier se el Farbtiefe des hPic& determinado u8nd el es siempre exakt el Farbtiefe des Desktop, entsprechend auch el Farbanzahl. Und el allermeisten Rechner son en una Farbtiefe de 32 Bit eingestellt, wobei 24 Bit para el Farben verwandt voluntad. (Farbanzahl es also 2^24)
Saludo Roland |
| | | Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 08.08.2008 ▲ |
| |
| |  Jörg Sellmeyer |
Werte después de LoadBmp veces getestet?
Das hay sí nun veces no mehr (seit XPRofan10?). Como lo sí %BitsPixel son, Es el sí eigentlich para el ermittlung el Bildschirmfarbtiefe zuständig.
El Farbtiefe (Bits/Pixel) des zuletzt con DrawPic, DrawSizedPic, CopyPic, CopySizedPic, create("HPIC",...), create("hSizedPic",...) oder create("hPicCopy",...) geladenen Bildes.
Wenn Yo el así durchlese, sehe Yo como aber no Referencia darauf, daß sichder Valor en el Farbtiefe des Desktops bezieht. |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08.08.2008 ▲ |
| |
|
RespuestaThemeninformationenDieses Thema ha 6 subscriber: |