Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. StringFormat.Format16bppArgb1555 ?

StringFormat.Format16bppArgb1555 ?

Scheduled Pinned Locked Moved Visual Basic
graphicsperformancequestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marc 0
    wrote on last edited by
    #1

    Hi folks, I have a kind of listview, with a couple of 1000 items. Each item displays a bitmap of around 100x100 pixels. Because it takes very long to make the bitmap, each item caches the bitmap instead of redrawing it over again. But, because there are so many items, memory goes berserk (+200000 private bytes) Each bitmap has a pixelformat of 32bppPArgb. Because i want to keep the memory within bounds, i would like to change this to Format16bppArgb1555 or something. But then i can't create a Graphics object from the bitmap (OutOfMemoryException). Does anyone here have any ideas? Thanks in andvance!

    M 1 Reply Last reply
    0
    • M Marc 0

      Hi folks, I have a kind of listview, with a couple of 1000 items. Each item displays a bitmap of around 100x100 pixels. Because it takes very long to make the bitmap, each item caches the bitmap instead of redrawing it over again. But, because there are so many items, memory goes berserk (+200000 private bytes) Each bitmap has a pixelformat of 32bppPArgb. Because i want to keep the memory within bounds, i would like to change this to Format16bppArgb1555 or something. But then i can't create a Graphics object from the bitmap (OutOfMemoryException). Does anyone here have any ideas? Thanks in andvance!

      M Offline
      M Offline
      Marc 0
      wrote on last edited by
      #2

      ... but you guys probably already thought of that :-D

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups