Questions tagged [writablebitmap]

Provides a BitmapSource that can be written to and updated.

Provides a BitmapSource that can be written to and updated.

Namespace: System.Windows.Media.Imaging

Assembly: PresentationCore (in PresentationCore.dll)

References: MSDN

60 questions
0
votes
1 answer

How to load an image to writablebitmap in windowsphone?

I'm trying to create a writablebitmap.I want to load an image to my writable but it doesn't work(attention to the image please): here is my code: var b = new WriteableBitmap(336, 336); var background = new Canvas(); …
FSystem
  • 83
  • 1
  • 8
0
votes
1 answer

Background task (writablebitmap) will be terminated in windows phone

I'm updating my app for windows phone 8.1 and I want to create a transparent live tile. I'm using The ToolStack PNG library for creating png images and it works fine in first look ! I am using the code below in background task private void…
FSystem
  • 83
  • 1
  • 8
0
votes
1 answer

writablebitmap render bad image

Hi everyone I don't understand why image is not rendered correctly. Here the xaml:
Simone
  • 2,304
  • 6
  • 30
  • 79
0
votes
1 answer

How can I use Writablebitmap in ScheduledTask in windows phone 8?

I want to update my live tile by creating and saving a writable bitmap image in scheduled task agent.my code works inside the app but in background task, it breaks into the debugger I'm using this simple code: protected override void…
0
votes
1 answer

OutOfMemoryException on WP8 (C# & Silverlight) because of WritableBitmap

I'm creating and application that needs to add and remove a lot of UIElement to a Canvas. Basically a Canvas contains a collection of UIElement and automatically renders/updates it on the screen depending what it contains. In order to avoid having a…
Yann
  • 71
  • 8
0
votes
2 answers

Locking and Unlocking WritableBitmap

I'm trying to write into a WritableBitmap and I want to do the data processing in a non-UI thread. So I'm calling the Lock and Unlock methods from the UI dispatcher and the rest is done on a different thread: IntPtr pBackBuffer =…
Dina
  • 1,346
  • 1
  • 15
  • 35
0
votes
1 answer

WritableBitmap to RandomAccessStreamReference

i have next question: I have made a screenshot using WinRT XAML Toolkit (code1) Now i want to attach this WritableBitmap to email (code2) CODE 1 WriteableBitmap wb = null; var start = DateTime.Now; const int count = 1; …
0
votes
1 answer

Get RGB Color Percentage From Image

How does one get the RGB color percentages from an image in windows app store by using a writable bitmap. In Windows app I was getting it earlier like this: public static Color getDominantColor(Bitmap bmp) { //Used for tally int r =…
0
votes
1 answer

Merge several images into one

I have several images, every image placed in writablebitmap. Each images represent one layer, every image contain transparency. I need combine this images into one, combine algorithm: show first image(without changes), after that draw second image,…
Andriy Mytroshyn
  • 221
  • 1
  • 5
  • 14
0
votes
1 answer

WritableBitmap issue when changing the color

I am trying to change the color of an image using WriteableBitmap in windows phone 8. Basically, I have an icon (png) with black color and transparent background. I have tried to convert it to white color with transparent background as…
0
votes
1 answer

Storing images in windows phone 8

I have been really cracking my head trying to write and read png files into a folder in Windows Phone 8. From few blogs sites and codeplex i found that the there is an extension to the WritableBitmap Class which provides few extra functionalities.…
alfah
  • 2,077
  • 1
  • 31
  • 55
0
votes
1 answer

create tile data in background agent wp7

What's a good way to create the bitmap needed to update a live tile in a background agent? In the UI thread, you use writeableBitmap class, but this does not work in the non-ui thread. There are many examples of tiles in background agent, but they…
0
votes
1 answer

Manipulating pixels WritableBitmapEx

What is fast approach to manipulate pixels in WritableBitmap (i also use WritableBitmapEx extensions)? SetPixel is very slow method for things like filling a background for my Paint-like application and also it does some weird things like memory…
fex
  • 3,488
  • 5
  • 30
  • 46
-1
votes
1 answer

WritableBitmap: Memory allocation mismatch - How to solve?

In my program I try to read a color palette image's (FormatConvertedBitmap with format Indexed4) pixels using a WritableBitmap. The dimensions of the resulting image are 20 * 27 pixels. The color palette is 16 colors, so each color takes a nibble…
AxD
  • 2,714
  • 3
  • 31
  • 53
-2
votes
1 answer

System.InvalidOperationException: Specific element is already the logical child of another element. Disconnect is first

I am trying to print some paragraphs and image using Flow Document As shown in Code below Paragraph invoiceID = new Paragraph(new Run("Invoice No : "+ txtInvoiceID.Text)); Paragraph qty001 = new Paragraph(new Run("Quantity : " +…
Jaa Zaib
  • 151
  • 2
  • 6
  • 14
1 2 3
4