O ozgureffe Member Licensed User Longtime User Aug 4, 2011 #1 What is the Canvas Size Limitations? Last edited: Aug 4, 2011
K Kamac Active Member Licensed User Longtime User Aug 4, 2011 #2 Do you mean size of drawing a circle? Please precise. Upvote 0
O ozgureffe Member Licensed User Longtime User Aug 6, 2011 #3 No, I mean drawable canvas size limitations. Because I need a drawable canvas 8 times bigger than the screen size. Code: Dim notePanelWidth As Float : notePanelWidth = 800%x Code: Canvas1.Initialize(notePanel) Bitmap1.Initialize3(Canvas1.Bitmap) But my app force closes. I checked the log and there was an error entry containing the term "out of memory" So what is the limit of canvas size? And does it change phone to phone? Upvote 0
No, I mean drawable canvas size limitations. Because I need a drawable canvas 8 times bigger than the screen size. Code: Dim notePanelWidth As Float : notePanelWidth = 800%x Code: Canvas1.Initialize(notePanel) Bitmap1.Initialize3(Canvas1.Bitmap) But my app force closes. I checked the log and there was an error entry containing the term "out of memory" So what is the limit of canvas size? And does it change phone to phone?
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2011 #4 There is no hard limit for the canvas maximum size. It depends on the process available memory (which is much smaller than the device available memory). You should instead create a much smaller bitmap and when you draw it to the activity you should resize the drawing area (like a digital zoom). Upvote 0
There is no hard limit for the canvas maximum size. It depends on the process available memory (which is much smaller than the device available memory). You should instead create a much smaller bitmap and when you draw it to the activity you should resize the drawing area (like a digital zoom).