Menu

#40 TImgView32 w/o an image

open
nobody
5
2012-08-29
2012-08-29
Mercury
No

...everything else (layers, paint stages, zooming) remains, but instead of image just W and H.
Usable for tile editors, gigapixel photos. It would be extremely cool if the dimensions can exceed limitations on TBitmap32.

Discussion

  • Christian-W. Budde

    Can you please provide further examples/specifications/patches?

     
  • Mercury

    Mercury - 2012-08-29

    1. Photoshop (with checquered transparency pattern).
    2. Tile editor for computer games.
    3. Gigapixel photo viewer.
    4. CAD-like software.

    TImgView32, with scrollbars, zooming, layers and coordinate conversion, is a cool base for these applications. But the background is not just a TBitmap32, but is painted programmatically. In these four applications the background is:
    1. Transparency pattern.
    2. Tiled background.
    3. Pieces of photo that are actually loaded.
    4. Solid background.
    Here TBitmap32 is just a waste of memory.

     
  • Mercury

    Mercury - 2012-08-29

    In 2005 we used TImgView32 for an in-house tile editor. We mechanically copied TImgView32 to TImgView0 and disposed of TBitmap32, having added ImageWidth and ImageHeight instead. But this is not an option for an open-source product; the simplest solution is a flag somewhere in TCustomImage32. More complex is rethinking object structure, but I don’t know how.

     
MongoDB Logo MongoDB