Shop OBEX P1 Docs P2 Docs Learn Events
Windows Bitmap viewer for TV — Parallax Forums

Windows Bitmap viewer for TV

RaymanRayman Posts: 14,553
edited 2009-05-26 15:42 in Propeller 1
I've hacked TV.SPIN to bring you a Windows BMP picture viewer for the Propeller!

It can display any 256 color (8bpp) .BMP file up to 256 pixels wide and 192 pixels tall.
(but bmp filesize should be less than around·27,828 bytes)
Regular text shows on top of the screen and picture on the bottom.

Here·the code, ·screenshot, and source .bmp file:

(Of course, I've done some magic in Photoshop to optimize the result)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 5/23/2009 9:18:12 PM GMT

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-23 17:27
    @Rayman: Are you teasing us? Post some code. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • BaggersBaggers Posts: 3,019
    edited 2009-05-23 17:49
    Looks good Rayman [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • RaymanRayman Posts: 14,553
    edited 2009-05-23 18:26
    Thanks.· I'll post the code in a few minutes...· I want to clean it up a bit...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • RaymanRayman Posts: 14,553
    edited 2009-05-23 19:33
    I've attached the code to the top post, as promised.
    Also, here are a few images I've tweaked in Photoshop (and a couple untweaked, just to test).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • ColeyColey Posts: 1,110
    edited 2009-05-23 20:59
    Ray,

    Nice work, looks really good!!!

    Have any tips for creating the bmp files, a couple I tried crashed the application.
    (They were less than 256x192 and 256 colours)

    Thanks,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • RaymanRayman Posts: 14,553
    edited 2009-05-23 21:14
    There's some tips in the comments of the main file. I think the maximum file size is around 27,828 bytes. Were your files bigger than that?
    Also, it's really best to use the same palette as the examples for best quality.

    Also, I must admit that I haven't really tried 256 wide or 192 tall...· Maybe there's a problem with tall or wide pics?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    Post Edited (Rayman) : 5/23/2009 9:19:32 PM GMT
  • ColeyColey Posts: 1,110
    edited 2009-05-23 21:28
    Ray,

    I think it was me just being lazy and using windows paint.
    I used paint.net to adjust the attached file, work really well now ....

    Coley

    135x192 256 Colours

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • RaymanRayman Posts: 14,553
    edited 2009-05-24 01:03
    Coley:· I've Photoshoped your picture (applied the TV palette)...· This version loads faster and probably looks a bit better.

    PS:· Do you think this would work with a PAL TV?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • ColeyColey Posts: 1,110
    edited 2009-05-24 19:16
    Hi Ray,

    Yes that does look a bit better.
    PAL mode works but flickers/shimmers far too much, I can tweak the driver to do PAL 60 which is pretty much the same as NTSC.

    How did you apply the TV Palette in photoshop, a little tutorial would be nice.... smile.gif

    Thanks,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • RaymanRayman Posts: 14,553
    edited 2009-05-24 22:02
    I'll try to find time to work on a tutorial... Basically, you open a picture, resize it, change the mode to indexed color and then tell it to use the palette file that I've embedded in the archive. You can also extract the palette from any of the pictures I've posted here...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • RaymanRayman Posts: 14,553
    edited 2009-05-26 15:02
    I've tried to find some freeware program that can do better than Irfanview does for creating a 256 color bmp file with a fixed palette, but can't find anything. Photoshop does a much better job than Irfanview though.

    This is a bit of a complication for my video player plan...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    Post Edited (Rayman) : 5/30/2009 12:59:22 AM GMT
  • DufferDuffer Posts: 374
    edited 2009-05-26 15:42
    JASC (now Corel)·Paint Shop Pro (I'm using version 8) will use the palette file that Rayman supplied and does a good job of resizing·and cropping. I think you can still get a high functioning free trial version.

    You can try here: http://www.brothersoft.com/paint-shop-pro-64054.html

    Duffer
Sign In or Register to comment.