Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

loading 'n diplaying bitmaps w/out pallette manip.

mwronskimwronski Member Posts: 62
Ive seen so many sources for loading bitmaps, but every one changes the pallete in some way so I cant load 2 at a time etc. Does anyone have the pascal source to a bmploader that just read the data and writes it to the screen in mode 13h (256 col) ? WITHOUT CHANGING THE PALLETTE!

Comments

  • ibyiby Member Posts: 323
    [b][red]This message was edited by iby at 2002-9-1 10:45:10[/red][/b][hr]
    : Ive seen so many sources for loading bitmaps, but every one changes the pallete in some way so I cant load 2 at a time etc. Does anyone have the pascal source to a bmploader that just read the data and writes it to the screen in mode 13h (256 col) ? WITHOUT CHANGING THE PALLETTE!
    :

    In short, NOPE (at least I've never seen something
    like it - there is some code that alows fading from one
    pic to another but not good enough...).
    You cannot load any two 256 color bitmaps to same screen
    in 256 color modes without quality degradation.
    If you want to do it anyway, you should prepare bitmaps
    in such way that thir pallets match. This is difficult
    to do so what most people do is reduce number of colors
    for the BMPs (any decent graphic editor will do, even
    free graphic viewer IrfanView32).
    Once you shrink pallet of your picture to some let's
    say 64 colors, you have 192 colors left for your
    program (custom colors). In this case you could load
    3bitmaps and still have some 'spare' colors for custom
    graphic. For example you could load one bitmap with its
    *reduced* pallet, shift everything by 64, load next
    bitmap etc. I think you get the idea. Of course,
    first thing you should try is to resample your pictures
    and see if the quality is still acceptable.

    Iby





  • Justin BibJustin Bib USAMember Posts: 0

    _________ | http://forcoder.org | free ebooks and video tutorials about // C++, C#, R, Go, PL/SQL, Swift, Visual Basic, Objective-C, MATLAB, Java, Perl, Assembly, Scratch, Ruby, C, JavaScript, Python, Delphi, PHP, Visual Basic .NET Fortran, Apex, F#, Lua, COBOL, Scala, D, Kotlin, Transact-SQL, SAS, Crystal, Alice, Clojure, ABAP, LabVIEW, Prolog, VBScript, Erlang, Awk, Julia, FoxPro, ML, Bash, Scheme, Lisp, Dart, Ada, Logo, Rust, Hack // ___

Sign In or Register to comment.