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
1 answer

Parse image to byte array and send to web service

I am wondering how I can get an image from a Silverlight Image control and parse it to a byte array so I can send it to my web service. Thanks for your help.
Matthew
  • 3
  • 5
0
votes
1 answer

BitmapImage Constuctor(Uri) not working on Windows Phone 7

BitmapImage tempBitmap = new BitmapImage(onlineImageLocation); Fairly simple code. OnlineImageLocation refers to http://dantonybrown.com/brownsoft/SweepyCleaner.png but after construction BitMap image contains no poplated fields. Even PixelWidth…
0
votes
1 answer

save current view to bitmap WP7

I just started to WP7 Dev, and I would like a bit of help on solving this: I have a Canvas in wich I have 2 StackPanels where I draw like 10 Rectangle. So my question is, how do I save the canvas to a Bitmap? here is what I want to achieve, that…
Raykud
  • 2,488
  • 3
  • 21
  • 41
0
votes
2 answers

Improve image quality after draw string on it, in c#

I use Graphics.DrawString Method to write a text on image, but the text quality become too low after saving image. this id my code: Bitmap bitMapImage = new System.Drawing.Bitmap(Server.MapPath("~/k32.jpg")); Graphics graphicImage =…
El Ma
  • 35
  • 3
  • 8
0
votes
1 answer

Getting An Error When Adding BitmapImages to a ListBox

So, I have been working on adding BitmapImages to a ListBox for pretty much my whole work day. Here's my code: public class SomeClassViewModel : ViewModelBase { public SomeClassViewModel(EnhanceImage image) { LoadImages(); } …
Stylzs05
  • 491
  • 2
  • 8
  • 19
0
votes
1 answer

WPF Image crossfade c#

I have a list of images in my control public List Images { get; set; } I am using a timer to change the images. Image imgpanel = new System.Windows.Controls.Image(); imgpanel.Source = image; imgpanel.Stretch =…
Welsh King
  • 3,178
  • 11
  • 38
  • 60
0
votes
1 answer

How to add stickers(images) to Bitmap

Hi an developing drawing android application. in that i want to add a sticker(image) to bitmap then i can save the images.. please anyone knows about this please ping me. thanks in advance..
Quick learner
  • 699
  • 4
  • 22
  • 39
-1
votes
1 answer

Serialize bitmapImage and deserialize in class by XmlSerialize Silverlight

Possible Duplicate: WPF BitmapImage Serialization/Deserialization I have class I have to seriazlize this class class X{ .... public BitmapImage SomeImage{ get; set; } .... } That's my logic for serializing object XmlSerializer serializer = new…
-1
votes
1 answer

i am having Low image quality even after RenderOptions.SetBitmapScalingMode to HighQuality

i am having low quality image even after RenderOptions.SetBitmapScalingMode(thumbImg, BitmapScalingMode.HighQuality); Any idea if(File.Exists(image_file.FullName)) { IPLRes.print( "Loading " + image_file.FullName); …
Bayo Alen
  • 341
  • 1
  • 6
  • 13
-1
votes
1 answer

My app doesn't run on Android Studio, I get: E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException

This is my code: package edu.huflit.comicsapp1; public class App extends Application { public static ArrayList data; @Override public void onCreate() { super.onCreate(); if (data == null) { data =…
-1
votes
1 answer

Bitmap Image not changed c#

I have an area in my wpf project that should display an image by link. The image on the link changes with a certain frequency. My code: string path1 = @"";//link from image image_1.Source = null; GC.Collect(); BitmapImage bi1 = new…
mail_oii
  • 11
  • 1
-1
votes
3 answers

How to convert base64 string to BitmapImage?

I'm reading data from a blob in MySQL in Base64 String. I want to convert this to a BitmapImage. I've tried many ways, but without success. Here is an example: public static BitmapImage Base64ToBitmapImage(this string base64String) { …
xaotix
  • 39
  • 6
-1
votes
2 answers

Get original size of BitmapImage after changing the DecodePixelWidth/Height

Due to performance reasons, I have to rescale a very large BitmapImage (e.g. 45000*10000 pixels) during loading. As the image can be zoomed, I cannot simply specify a fixed size but would reduce the pixel size by some (later dynamic) factor: image =…
LionAM
  • 1,271
  • 10
  • 28
-1
votes
2 answers

How to add images to a ListView in WPF

I want to add images to a ListView. I have converted image to BitmapImage. I have collection of objects that contain Image property which is bind to DataTemplate.
-1
votes
1 answer

Binding a wpf xaml image to System.Windows.Controls.Image is not working

I have an image in wpf application and bind its Source property to System.Windows.Controls.Image in view model but it is not working. But when i bind its Source property to a BitmapImage, it is working. Is there any way to bind Source property as…
nihasmata
  • 652
  • 1
  • 8
  • 28