Questions tagged [bitmapimage]

A bitmap(BMP) is a raster graphics image file. It is also referred to as a Device Independent Bitmap (DIB).

900 questions
-1
votes
2 answers

Getting FATAL EXCEPTION at Bitmap

I am getting FATAL EXCEPTION while trying to draw image using ImageView after taking that image using mobile camera.But i am getting exception while creating image using Bitmap. Code:: public class MMS extends Activity implements OnClickListener…
KCRaju
  • 544
  • 3
  • 7
  • 21
-1
votes
1 answer

How to read image dimensions at C# wpf - there is no dispose method for BitmapImage

With the way below i am able to read. But there is no dispose method so i am not able to delete the file later. So the below method is getting failed. I could not come up with a proper solution. Bitmap class is not recognized in C# 4.5 WPF…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
-1
votes
2 answers

Outofmemory error in bitmap runtime exception

i am displaying my images from assests/image folder , but this code is not working . this code display images from assets folder in gallery . i am using gallery prefine library or jar file. please expert check it . thank u AssetManager…
Rahul Rawat
  • 999
  • 2
  • 17
  • 40
-2
votes
1 answer

I'm having a problem in c# where when i try to fill an entire 8x8px .bmp file with black it doesn't do anything and there are no errors

I'm having a problem in c# where when i try to fill an entire 8x8px .bmp file with black it doesn't do anything and there are no errors here is my code: using System; using System.Windows; using System.Drawing; namespace Data_Block_Test { class…
danny boi
  • 1
  • 2
-2
votes
1 answer

Saving image to disk with C# bitmap more efficiently

I am using a C# program to save about 10 screen captures of size 660x330 per second. This C# program is used as a .dll script for the game GTA V. Bitmap catchBmp = new Bitmap(300, 660, System.Drawing.Imaging.PixelFormat.Format32bppRgb); Graphics g =…
J.W Ngo
  • 66
  • 6
-2
votes
1 answer

Is it possible to persist the original data used to build a BitmapImage without reencoding?

Elaborating on the title a little bit more, we have some code that loads an image file from disk, then converts it into a BitmapImage for display on screen. We then need to persist that data to a different storage mechanism as a byte array so it can…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
-2
votes
1 answer

How to change android code from compress bitmap to reszie or scaled bitmap?

I try to change this code into resized or scaled bitmap cause if I use compress bitmap, it will get too small image. How can I change it? FixBitmap3.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream3); byteArray3 =…
-2
votes
1 answer

Encrypting an image to form another encrypted image Windows Phone 8.1

My requirement is to encrypt an image using AES. My approach is to convert image to Byte Array and apply encryption. After encryption convert the encrypted byte array back to image. But in the last part no image is generated from byte encrypted…
Hassaan Salik
  • 413
  • 4
  • 22
-2
votes
2 answers

I am stuck with this code,having doubts about the FILE structure and fopen function

typedef struct tagFileheader { unsigned short Type; // 00h File Type Identifier to check if the file is bmp or not unsigned int FileSize; // 02h Size of bmp file No.of bytes of the bitmap file …
-2
votes
2 answers

bitmap error null pointer exception

Bitmap bitmap = BitmapFactory.decodeStream(result); HERE IN LOG I AM GETTING 03-05 06:47:36.639: E/bitmap(931): android.graphics.Bitmap@417d5948 BUT THEN EXCEPTION COMES OF NULL POINTER EXCEPTION public class DetailsActivity extends…
-2
votes
5 answers

Android Bitmap OutOfMemory

In my app I have a list. Once you click an item in that list a new view will be shown. In this view I will display a logo and run some music stream. The logo is loaded as suggested by Google using the good way of loading an image resource. Actually…
schurtertom
  • 520
  • 1
  • 9
  • 19
-3
votes
1 answer

in a sync await method the image property dont binding with the UI

So I'm trying to do binding with a list of bitmapImage using async-await, but for some reason I don't see the images on the UI. In the loop where I'm trying to update the property, when I do: ImageSource = imageList[2]; or any other number between…
pp-man
  • 59
  • 1
  • 6
-4
votes
1 answer

Need Java code to compress image below 500 KB in Android

I have tried by setting BitmapFactory.Options inSampleSize but its not reducing image below 500 KB. Image might be any size and must be compressed because i'm storing it on database, Image below 500 KB is my primary requirement. Below is my code: …
Shailendra Patil
  • 377
  • 2
  • 19
-5
votes
1 answer

C / C++ SHIFT / OFFSET / MOVE a Bitmap to the LEFT or RIGHT?

I say I have a monochrome 240x60 bitmap with a bit depth of 1, in a byte array in memory, like BYTE bitMapBytes[2048] Assuming that the bytes are all and only image data bytes (no BITMAPINFOHEADER, BITMAPFILEHEADER), how do I shift the bitmap…
Hermes
  • 99
  • 3
-5
votes
1 answer

Error in saving bitmap image in internal storage

I want to save bitmap image in internal storage.but i got syntax error. i goggled that error but cannot get appropriate solution.
1 2 3
59
60