H hackhack Active Member Licensed User Longtime User Jul 2, 2011 #1 Which files types does LoadBitmap support?
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2011 #2 The formats are listed here: Android Supported Media Formats | Android Developers Note that for large images it is recommended to use LoadBitmapSample instead. Upvote 0
The formats are listed here: Android Supported Media Formats | Android Developers Note that for large images it is recommended to use LoadBitmapSample instead.
H hackhack Active Member Licensed User Longtime User Aug 1, 2011 #4 How do you figure out the dimensions of the bitmap? I thought perhaps dimming a bitmap and pointing at loadbitmap would then give me a valid width, but that just raises an error. Upvote 0
How do you figure out the dimensions of the bitmap? I thought perhaps dimming a bitmap and pointing at loadbitmap would then give me a valid width, but that just raises an error.
Erel B4X founder Staff member Licensed User Longtime User Aug 1, 2011 #5 Here: B4X: Dim bmp As Bitmap bmp = LoadBitmap("...", "...") Log(bmp.Width & "x" & bmp.Height) Upvote 0
H hackhack Active Member Licensed User Longtime User Aug 1, 2011 #6 Yeah, that's what I thought - and tried - but got an error. sigh, guess I did something wrong. Upvote 0
K Kamac Active Member Licensed User Longtime User Aug 1, 2011 #7 Yeah, that's what I thought - and tried - but got an error. Click to expand... What error was it ? Upvote 0
H hackhack Active Member Licensed User Longtime User Aug 1, 2011 #8 Kamac said: What error was it ? Click to expand... Don't remember (can't check right now) - could it be null value or something like that? Hm.. Upvote 0
Kamac said: What error was it ? Click to expand... Don't remember (can't check right now) - could it be null value or something like that? Hm..
K Kamac Active Member Licensed User Longtime User Aug 1, 2011 #9 Dim bmp As Bitmap bmp = LoadBitmap("...", "...") Log(bmp.Width & "x" & bmp.Height) Maybe you've forgot to Dim bmp As Bitmap? Upvote 0
Dim bmp As Bitmap bmp = LoadBitmap("...", "...") Log(bmp.Width & "x" & bmp.Height) Maybe you've forgot to Dim bmp As Bitmap?