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. C#
  4. Bitmap.SelectActiveFrame

Bitmap.SelectActiveFrame

Scheduled Pinned Locked Moved C#
csharpcssgraphicsdebugginghelp
1 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.
  • H Offline
    H Offline
    H is here
    wrote on last edited by
    #1

    Hi everyone, I would like to know if someone have experienced slow issues with Bitmap.SelectActiveFrame in a 64 bit system, or why is the method so much slower in a 64 bit system than in a 32 bit? Here is a sample code that I have used to test:

    Bitmap m_bmp = new Bitmap("C:\\01.tif");
    String m_Start = DateTime.Now.ToString("hh:mm:ss");
    System.Diagnostics.Debug.WriteLine("Started at: " + m_Start);
    for (Int32 a = 0; a < 22; a++)
    { m_bmp.SelectActiveFrame(FrameDimension.Page, a); }
    String m_Finish = DateTime.Now.ToString("hh:mm:ss");
    System.Diagnostics.Debug.WriteLine("Finished at: " + m_Finish.ToString());

    The 01.tif file is a black & white image with 1bpp and 23 pages with 300dpi. Test made with Windows7 VS2010 .NetFramework 4.0 32 bit: Less than 1 second. Test made with Windows7 VS2010 .NetFramework 4.0 64 bit: 6 seconds. This is really a lot. Can someone be kind to help me ? Thank you. Best regards.

    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