Forum | | | | - Page 1 - |
|  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 ▲ |
| |
| | | | | - Page 1 - |
|  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 ▲ |
| |
| | | | - Page 2 - |
| |  RGH | Hi,
the LoadBmp there naturally yet, only is it now too DrawPic: CompileMarkSeparation and here becomes The Color Depth the Bmp-File indicated In this case means 4 bit. with "DrawPic &hPic, ..." becomes naturally The Color Depth the with DrawPic on the screen brought Bildes, means of &hPic indicated. and these is now times the Color Depth the Desktops. I ought to in the Help something detail on these delicacies come in. The from the middle-aged Help copied concept "geladen" is here misleading, there it in the usual Sprachgebrauch only zutrifft, if the To zeichnende Image directly a File loaded becomes, and not if it a Memory bitmap gotten becomes.
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 | I find, you should rather %bmpp so adjust, that it The korrekte Color Depth widergibt.  |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08/08/08 ▲ |
| |
| |  RGH | Jörg Sellmeyer
I find, you should rather %bmpp so adjust, that it The korrekte Color Depth widergibt. 
does it Yes, and of course in the obigen example The of &hPic. The commands DrawPic setting The Color Depth on the worth the Bitmap, The it draw. it can none More know, which Color Depth some Image having, the sometime time with a others commands loaded watts.
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 ▲ |
| |
| |  Frank Abbing | RGH
Jörg SellmeyerI find, you should rather %bmpp so adjust, that it The korrekte Color Depth widergibt.  does it Yes, and of course in the obigen example The of &hPic. The commands DrawPic setting The Color Depth on the worth the Bitmap, The it draw. it can none More know, which Color Depth some Image having, the sometime time with a others commands loaded watts. Greeting Roland
But this is unlogisch. still says The Help: The Color Depth (Bits/Pixel) the lastly with DrawPic, DrawSizedPic, CopyPic, CopySizedPic, create("HPIC",...), create("hSizedPic",...) or create("hPicCopy",...) loaded Bildes. DrawPic becomes however here none to that loading uses, separate to that copy and might therefore in the drop not The Variable change. |
| | | | |
| |  | Hehe, the can again see How time wants, (almost) How at explode-trouble. 
Letztendlich would it well XProfan (or "smart" lol) if Roland here even a exception declared so the expected worth zurückgeliefert becomes, simply therefore, because it imho by GDI anyhow The values einmalig own and it so none makes sense, extra a Include aufzusetzen, only because the values (really) "überschrieben" belong. ultimately can The deep the hPics with %bitsPixel detect. |
| | | | |
| |  Jörg Sellmeyer | If the worth only The Color Depth the Bildschirms zurückgibt, is it crept superfluously, there it Yes, How said, already %BitsPixel gives. From of/ one variables, which (loudly Help) on loaded Bitmaps relating, expect I, that tappt im dunkeln too a worth returns, the itself the Image relating. what about me stops it really for sinnvoller, whom Return Value anzupassen, as The Help with a überflüssigem worth To "korrigieren". |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08/08/08 ▲ |
| |
| |  RGH | Frank Abbing
still says The Help: The Color Depth (Bits/Pixel) the lastly with DrawPic, DrawSizedPic, CopyPic, CopySizedPic, create("HPIC",...), create("hSizedPic",...) or create("hPicCopy",...) loaded Bildes. DrawPic becomes however here none to that loading uses, separate to that copy and might therefore in the drop not The Variable change.
here differiert the, what The Help says now time from the, I meant and program have. sure can now drüber quarrel, what The better Solution is. my thought was, that it heavy nachvollziehbar is, Why DrawPic with of/ one Syntaxvariante these four System-Variables setting and with of/ one others not. therefore determined I, tappt im dunkeln always To settle. at that strain Help have I but something To flippant The old formulation übernommen, which on the middle-aged commands LoadBMP relating.
How the too be: now ought to at least clear his, How and when XProfan these System-Variables setting.
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 ▲ |
| |
| |  Frank Abbing | Nachtrag:
&BmpCol
--------------------------------------------------------------------------------
Version: 3.3 / 11.0
Farbanzahl the lastly with DrawPic, DrawSizedPic, CopyPic, CopySizedPic, create("HPIC",...), create("hSizedPic",...) or create("hPicCopy",...) loaded Bildes.
could the image not loaded go, becomes &BmpCol on 0 reset.
Oftmals is the Number of Bits/Pixel interessanter as The Farbanzahl. These can with %BmpC determined go.
. You promise here in the help of %BmpC... |
| | | | |
|
AnswerThemeninformationenthis Topic has 6 subscriber: |
|
|
Privacy Policywe use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.
If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.
further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.all rightDatenschutzerklärung i want none Cookie
|