Results 1 to 12 of 12

Thread: Bitmap Resource...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Arrow

    Hi, Guys.

    I have a little question.
    I have 40 ICO pictures, 20 Masks and 20 Sprites.
    I want to put them in one BMP file.
    I copy everyone of them, make a big BMP file, but
    when I want to BitBlt from there the pixels are a
    little wrong. for example:
    I have a BMP file with One mask (0,0) and one
    sprite (0,48) every picture is 48x48.
    when I do BitBlt for the sprite I need to write
    BitBlt pic1.hdc,0,0,48,48,pic2.hdc,0,49,vbsrcand
    beside writeing
    BitBlt pic1.hdc,0,0,48,48,pic2.hdc,0,48,vbsrcand
    Or something like that...

    I don't know, maybe you have another way to
    put all 40 pictures in one file?
    Any idea?
    Tell me about your resources of masks and sprites.

    Thank you,
    Arie.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I recommend you keep them in separate files, that makes the whole thing easier and the game will run (unnoticable) faster
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Kedaman, didn't you have your .PAK file thing a while ago?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Yep, i still have my pak thing, and i still have my own kedapack project that got ready but never tested...
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Well.. um.. thats, um.. kinda my fault. Sorry.
    But I'm back to VB programming (took a short break to play Counterstrike) and am right now doing a routine to enlarge images smoothly (eg. Kreed's SuperEagle engine in Snes9x/Zsnes)

    It's called... wait for it, it's dumb:
    SastraxiSmooth!

    So, for what it's worth, I'm back to repay my debt to the VB universe.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Kreed's engine is used in Gens as well for megadrive games.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    (forgot how to program vb so is going back to play counterstrike)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    (None of you didn't really answer)

    My pictures are ICO files, and If someone who wants
    to change a detail in one of the pictures it's shown
    in the program.
    I need one file that contains the files and can
    be opened for the BitBlting.
    Moreover, my pictures are ICO, worse.
    because of that reason I need a resource file.

    Thank you,
    Arie.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Answer already...

    I need the answer in urgent.

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Sorry i didn't notice
    If you want you could betatest my file package format. It's uncompressed and have an internal directory/file structure, and has a function that creates a bitmap without extracting the file first.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    I'm on it, Kedaman.
    Write the link or send it to me.
    And explain a little bit,
    or you say that it's easy to understand?

    Thank you,
    Arie.

  12. #12
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Ok, i noticed it was in a real bad state so a alphatested it for a while, for the bitmaps, you can load any format except 4 bit (16 colors), they seems to scew up.

    The test project that comes with the package shows how to use it, you can do most stuff with it but it's not too userfriendly

    I'll upload the project on my homepage soon
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width