locked
Throw OutOfMemory when call ID2D1DeviceContext::CreateBitmapFromWicBitmap

    Question

  • when I  create a bitmap from a image that it's size is 2429*609 in arm machine using ID2D1DeviceContext::CreateBitmapFromWicBitmap, it throw the OutOfMemory exception. but it works in x86 machine. if the size of the image is smaller for example 290*291, it also works. Is there the limit for the picture when call this function? Is there solution? thanks.

    Thursday, October 18, 2012 8:16 AM

All replies

  • This is probably a limit from the video card. Does it load if you drop the size to 2048x600?  Take a look at the Direct3d level on your system and http://msdn.microsoft.com/en-us/library/windows/desktop/ff476876(v=vs.85).aspx .
    Friday, October 19, 2012 2:31 PM
    Owner
  • Hi,Rob

    thanks for your reply.

    yes, It can be loaded if I drop the size to 2048x600. and the Direct3d level is D3D_FEATURE_LEVEL_9_1 in the arm.

    Can I load the picture that it's size is larger than the size(2048x600) in the machine that it's Direct3d level is D3D_FEATURE_LEVEL_9_1? Is there any solution?

    Monday, October 22, 2012 2:21 AM