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. Mobile Development
  3. Mobile
  4. Unable to load bitmap with Compact Framework

Unable to load bitmap with Compact Framework

Scheduled Pinned Locked Moved Mobile
graphicshelpquestionperformance
3 Posts 2 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.
  • R Offline
    R Offline
    rudy net
    wrote on last edited by
    #1

    Hi, I am using CF3.5 on Windows CE5.0 and when I try to create a bitmap using: Bitmp bmp = new Bitmap(filepath) I get the exception error below. I also tried loading file into MemoryStreamm and then tried creating bitmap by passing a memory stream with all bytes corresponding to image but I get same error. I tried loading bmp, jpg, png images but none work. The device I am using is an iPAQ310. Is it possible that it's missing some kind of codec or some driver that compact framework assumes it to be there? If so, what is it missing? Thanks in advance for any help you can provide. System.Exception was unhandled Message="Exception" StackTrace: at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar) at System.Drawing.Bitmap._InitFromMemoryStream(MemoryStream mstream) at System.Drawing.Bitmap..ctor(String filename) at SkyVision.LocalFileImages.Resources.get_tiny() at SkyVision.FrontViewPanel..ctor() at SkyVision.MainForm.InitializeComponent() at SkyVision.MainForm..ctor() at SkyVision.Program.Main()

    J 1 Reply Last reply
    0
    • R rudy net

      Hi, I am using CF3.5 on Windows CE5.0 and when I try to create a bitmap using: Bitmp bmp = new Bitmap(filepath) I get the exception error below. I also tried loading file into MemoryStreamm and then tried creating bitmap by passing a memory stream with all bytes corresponding to image but I get same error. I tried loading bmp, jpg, png images but none work. The device I am using is an iPAQ310. Is it possible that it's missing some kind of codec or some driver that compact framework assumes it to be there? If so, what is it missing? Thanks in advance for any help you can provide. System.Exception was unhandled Message="Exception" StackTrace: at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar) at System.Drawing.Bitmap._InitFromMemoryStream(MemoryStream mstream) at System.Drawing.Bitmap..ctor(String filename) at SkyVision.LocalFileImages.Resources.get_tiny() at SkyVision.FrontViewPanel..ctor() at SkyVision.MainForm.InitializeComponent() at SkyVision.MainForm..ctor() at SkyVision.Program.Main()

      J Offline
      J Offline
      Joel Ivory Johnson
      wrote on last edited by
      #2

      You may want to install onto your device the resource DLL that contains the detailed error messages. What is the resolution of the image?

      Joel Ivory Johnson

      Meet my dev team: RDA Architecture Evangelist Team Blog

      My site: J2i.net

      Twitter: J2iNet

      R 1 Reply Last reply
      0
      • J Joel Ivory Johnson

        You may want to install onto your device the resource DLL that contains the detailed error messages. What is the resolution of the image?

        Joel Ivory Johnson

        Meet my dev team: RDA Architecture Evangelist Team Blog

        My site: J2i.net

        Twitter: J2iNet

        R Offline
        R Offline
        rudy net
        wrote on last edited by
        #3

        Hi Joel, I already tried embedding a simple bmp 5x5 pixels into my exe and still got same problem. I have been digging into it and the problem seems to be that the device I am programming into (HP iPAQ 310) does not have the necessary dll's required by framework. The framework uses gdiplus.dll. Then I believe gdiplus.dll uses gdi32.dll and this dll itself uses coredll.dll. The only one available in this device is coredll.dll and since it's in ROM, I am not able to even place another dll in the windows location. I would have to contact HP to have them provide me a new ROM version that contains this functionality. However, this device has some neat 3D games so the alternative would be to figure out what library those games use. Problem is that I will have to go back to C++ for that. :(

        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