mitsusdev Member Licensed User Longtime User Mar 10, 2014 #1 i have a problem with images of 500Kb about. Exist a limit for use with bitmap ? java.lang.RuntimeException: Error loading bitmap. at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize2(CanvasWrapper.java:521) at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:499) at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:1111) at anywheresoftware.b4a.samples.httputils2.httpjob._getbitmap(httpjob.java:116) at b4a.example.locandina._jobdone(locandina.java:630)
i have a problem with images of 500Kb about. Exist a limit for use with bitmap ? java.lang.RuntimeException: Error loading bitmap. at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize2(CanvasWrapper.java:521) at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:499) at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:1111) at anywheresoftware.b4a.samples.httputils2.httpjob._getbitmap(httpjob.java:116) at b4a.example.locandina._jobdone(locandina.java:630)
DonManfred Expert Licensed User Longtime User Mar 10, 2014 #2 What code you are using to load the image to what? What dimensions do the image have? w*h Have you tried loadbitmapsample? Upvote 0
What code you are using to load the image to what? What dimensions do the image have? w*h Have you tried loadbitmapsample?
mitsusdev Member Licensed User Longtime User Mar 10, 2014 #3 Code: Copy OutputImage = File.OpenOutput(File.DirInternalCache, FileImage, False) Job.GetBitmap.WriteToStream(OutputImage , 100, "JPEG") OutputImage.Close i have found that the problem is only with images 32 bit depth. Upvote 0
Code: Copy OutputImage = File.OpenOutput(File.DirInternalCache, FileImage, False) Job.GetBitmap.WriteToStream(OutputImage , 100, "JPEG") OutputImage.Close i have found that the problem is only with images 32 bit depth.