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
0
votes
3 answers

bitmap size exceed VM budget in android

Possible Duplicate: bitmap size exceeds Vm budget error android I have developed one android example.here i got the below error: java.lang.OutOfMemoryError: bitmap size exceeds VM budget here my console window shows following error: 11-23…
user1859172
  • 71
  • 2
  • 12
0
votes
1 answer

How could I improve my android app? Lot of lag drawing to an imageview

I'm developing an app that draws a circle into an image when the user touch the screen, and also the user can move this circle moving the finger over the screen. But in the action of move, I can see a lot of lag... The user open an image of this…
culebrins
  • 428
  • 9
  • 21
0
votes
1 answer

How to do XML parsing and decoding the bitmaps and loading images in Custom gridView in android

I m working on a project which POST a request to the web server and web server responds in XML format. here is the actual story starts. Actually i m sending the request to web server in the same activity and getting response in the same activity,…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
0
votes
2 answers

Loading large images into image control

I'm loading large images on a WPF window to make some adjustments (like brightness and contrast) but when I try to load a large image (3000x2000 or 4000x3000) my image converts automatically to a lower resolution (usually…
user962284
  • 670
  • 1
  • 12
  • 29
0
votes
1 answer

Dragging an image from the desktop and dropping it to bitmap viewer

I want to drag an image (person image) from the desktop and then dropping it to my wpf application any resources ?
MohdRash
  • 123
  • 1
  • 13
0
votes
1 answer

Viewing a BitmapImage for Sample Data in Design Mode in Blend 2012

Is there a way to create a BitmapImage as Sample Data to be used in Blend 2012 Metro Store App (on Windows 8)? I have a ViewModel as follows: public ItemDesignDataVM() { WebThumbnail = new BitmapImage(new Uri(???)); } public string ItemId { get…
Andy B
  • 541
  • 2
  • 13
0
votes
1 answer

How to set the source of a BitmapImage to a Stream?

I am trying to show an image in WPF. I use this: Stream fs = File.Open(path, FileMode.Open); BitmapImage bmp = new BitmapImage(); bmp.BeginInit(); bmp.StreamSource = fs; bmp.EndInit(); …
derp_in_mouth
  • 2,003
  • 4
  • 15
  • 17
0
votes
5 answers

How to show a text and image in a listview?

I have a listview which i want it for displaying a text and corrs image. I have used an arrayadapter for it. I am able to get an arraylist of hashmaps containing the values of the text and the url for the image. >…
Abhinav
  • 722
  • 2
  • 11
  • 27
0
votes
1 answer

Convert Bitmap to Image

So after I pull an image out of DLL and put it into an image control it is a BitmapImage. To package it back into the dll it has to be converted back to an image. How can I convert it back to image and how can i repackage it back into the dll? This…
Jake
  • 783
  • 5
  • 12
  • 18
0
votes
2 answers

I'm Trying to Create an Image Object with a Byte Array as Its Source. What Am I Doing Wrong?

I'm trying to create an image object with a byte array as its source. What am I doing wrong? An exception is thrown when I try to initialize the image object with an array of bytes as source data. The exception is shown in my code, below. public…
Giffyguy
  • 20,378
  • 34
  • 97
  • 168
0
votes
2 answers

Invisible part of BitmapImage

I have a SkinnableContainer, which contains s:BitmapImage. I need a part of the image (Rect) to be fully transparent. Just make a transparent cut-out, that would be easy to position. The image in the background is width="300" height="200" and…
RezavejT
  • 11
  • 1
  • 4
0
votes
2 answers

How to get the width and height of a BitmapImage in metro (UWP)?

I'm working in metro applications. And I'm using BitmapImage, where since the constructor I set the Uri, but I realized that all the time PixelWidth and PixelHeight returns 0 (I've verified also that the Uri is correct). I can't find another class…
Darf Zon
  • 6,268
  • 20
  • 90
  • 149
0
votes
1 answer

BitmapImage.DecodePixelWidth property disappered

I am completely confused. I've tried to use DecodePixelWidth property but get error: "The property 'DecodePixelWidth' was not found in type 'BitmapImage'" Then I've tried to compile simple program with code from MSDN page:
Seekeer
  • 1,344
  • 2
  • 18
  • 31
0
votes
1 answer

Sending an Image from WP7 to WCF and converting to Bitmap

I'm trying to send a picture from my Windows Phone to a WCF service, which needs a System.Drawing.Bitmap. I however, am not able to take the BitmapImage from my phone, and get a Bitmap on the WCF service. I'm doing this in C#. I've tried making the…
0
votes
1 answer

Error while Setting source to BitmapImage

I am a WP7 developer. I was using the following function: public BitmapImage SetImageSource(byte[] byteArray) { BitmapImage bitmap = new BitmapImage(); try { MemoryStream ms = new MemoryStream(byteArray, 0,…