| |
|
|
 Manfred Barei | Hi,
Please once testing, by me comes always one falser worth. CompileMarkSeparationDeclare 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/08 ▲ |
| |
| |  | This will sooner the worth the hPics his, not the the BMPs.
[offtopic] I see strain that I %BmpB overlooking have at XPSE, remedy bring of course {$pushkeyword %BmpB} but: heul! (werd I well nachreichen must...) @Manfred: would have not 24 hours former testing can.  [/offtopic] |
| | | | |
| |  Manfred Barei | Yes iF, wished I already yesterday, be but not any more moreover come.
Since I The Picturewahl.pcu strain wants custom I these Systemvariable. but tappt im dunkeln supply a incorrect worth as it from sees. 
Greeting |
| | | 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/08 ▲ |
| |
| |  | Manfred Barei
Yes iF, wished I already yesterday, be but not any more moreover come.
clear, no trouble - but say have You yet More such useful Information parat?  |
| | | | |
| |  Jörg Sellmeyer | even if it one Black-white-Image (1bit/pixel) is, shows the worth 32 on. there must Roland well same with the Patchcode begin.  |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08/08/08 ▲ |
| |
| |  Frank Abbing | The Bittiefe of/ one Bmp-File can you if need be too by hand read. this worth can 1, 4, 8, 16, 24 or 32 his. 24 wären means 24 bit, what means, that for each Bildpunkt three Bytes reserved are. CompileMarkSeparation |
| |
| |  Manfred Barei | and yet one, The Farbanzahl becomes neither correctly. displayed. See code: CompileMarkSeparationDeclare 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/08 ▲ | |
| |
| |  Jac de Lad | Perhaps isses Yes RLE-compressed and power so Problems? |
| | | 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/08 ▲ |
| |
| |  Frank Abbing | | | | | |
| |  | Habs still supra already erwähnt, The values relating itself the hPic.
values to LoadBmp time tested?
I faith Roland having such a thing erwähnt How the The Color Depth the hPics itself to the tuned Desktopfarbtiefe orientiert. I can present the create("HPIC" one hPic created, and hereon the image läd. the loaded Image thereby Yes on The hPic-Color Depth konvertiert, to loading has it then The "korrekt-angezeigten" values, even if The File others Content carry. 
an Include which from different Bildtypen properties wiedergibt would here helpful - or You game with GDI around.  |
| | | | |
| |  RGH | iF has (exceptionally ;) ) right: here becomes The Color Depth the hPic& certainly u8nd The is always exakt The Color Depth the Desktop, properly too The Farbanzahl. and the most computer are on a Color Depth of 32 bit tuned, where 24 bit for colours akin go. (Farbanzahl is means 2^24)
Greeting 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/08 ▲ |
| |
| |  Jörg Sellmeyer |
values to LoadBmp time tested?
the there Yes now times not More (since XPRofan10?). there it Yes %BitsPixel gives, is the Yes really for investigation the Bildschirmfarbtiefe zuständig.
The Color Depth (Bits/Pixel) the lastly with DrawPic, DrawSizedPic, CopyPic, CopySizedPic, create("HPIC",...), create("hSizedPic",...) or create("hPicCopy",...) loaded Bildes.
If I me the so durchlese, see I there but none Info hereon, that sichder worth on The Color Depth the Desktops relating. |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08/08/08 ▲ |
| |
|
AnswerThemeninformationenthis Topic has 6 subscriber: |