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

Copying from BitmapSource to WritableBitmap

I am trying to copy a part of a BitmapSource to a WritableBitmap. This is my code so far: var bmp = image.Source as BitmapSource; var row = new WriteableBitmap(bmp.PixelWidth, bottom - top, bmp.DpiX, bmp.DpiY, bmp.Format,…
Ramon Snir
  • 7,520
  • 3
  • 43
  • 61
8
votes
1 answer

Cropping the borders of image based on color in windows phone

Above is the image i am using. What i am trying to achieve is removing the red portion of the border from the image. How can I achieve this programmatically in windows phone? I found WriteableBitmapExtensions.Crop() method, but I am confused with…
StezPet
  • 2,430
  • 2
  • 27
  • 49
5
votes
1 answer

Doesn't WPF support 10-bit monitors (aka 30 bit colors)?

I need to support 10 bit per pixel displays (aka 30 bit colors) in a WPF image viewing app. I have a working setup (10bit screen and Nvidia Quadro) where I have been able to verify that the 10 bit support works by testing with gradient in PhotoShop:…
3
votes
1 answer

Image in the interface is not updated after WritableBitmap has changed

I am trying to update the image by drawing circles every time mouse pointer is moved. The pixelBuffer is stored in map object and updated with CircleFilledWithGradientMethod(). I load the pixel buffer in to WriteableBitmap Bitmap and then try to…
Ilya Lapan
  • 1,103
  • 2
  • 12
  • 31
3
votes
1 answer

WriteableBitmap.Pixels in Windows Phone 8.1

I am writing a Windows Phone 8.1 (WINRT) App. I am using fileopenpicker to choose a picture from gallery and then i display it in my app. But i want that user can crop this image before getting displayed on app. In windows phone 8, we used…
3
votes
2 answers

WPF - WritablebitmapEx render a smooth line

I need to render a "smooth" line using a WritableBitmap' i'm using WritableBitmapExtenstions. Every 12 ms i get 12 points consisting of an (X,Y) where the Y is normalized to the center of the screen, and the X represents a pixel on the the image…
eran otzap
  • 12,293
  • 20
  • 84
  • 139
2
votes
1 answer

howto efficiently have a WritableBitmap which matches a WPF control pixels 1:1?

I'm using WritableBitmap to draw fast 2d graphics in WPF. The problem is, my WritableBitmap does not match the pixel size of the Image control 1:1. When I try to make a new WritableBitmap based on size-change events of the Image control, the…
David Jeske
  • 2,306
  • 24
  • 29
2
votes
2 answers

Why my Image updates from top to bottom row by row

I have a WPF application with Image control in it. I'm using WriteableBitmap to update Image.source, but I can't understand why I see this strange behaviour: my image breaks in two parts and top part is slowly moving to bottom in cycle at pretty…
Aleksey
  • 115
  • 7
2
votes
0 answers

Can I create Fill and Eraser tools for winrt app like paint app in windows by Win2d or sharpdx?

I tried to create Fill and Eraser Tools by GDI but this way is too slow for windows phone devices and work with large photos with this method is too hard for this divices. I search for Alternative soulation for Image Processing and find Win2D and…
2
votes
2 answers

how to clear memory of WritableBitmap

I am picking image from gallery using PhotoChooserTask, here is my setup private void ApplicationBarIconButton_Click(object sender, EventArgs e) { PhotoChooserTask photo = new PhotoChooserTask(); photo.Completed += photo_Completed; …
Dev
  • 1,130
  • 10
  • 21
2
votes
1 answer

2D Graphic Matrix Blur

I'm developing an UserControl named Matrix2D to display 2 dimension matrix points in a x,y custom graphic. Strange thing is, if I set Auto to Width/Height the columns/rows to the Grid that contains this Matrix2D control, like this:
Fábio Ferreira
  • 105
  • 1
  • 9
2
votes
0 answers

WriteableBitmap without antialiasing

Im using the http://writeablebitmapex.codeplex.com/ WPF dll. For drawing objects on a writeablebitmap. Now I dont want to have antialised pixels. for example I draw a circle using (writeableBmp.GetBitmapContext()) { …
Aj_1994
  • 81
  • 3
2
votes
1 answer

WP8 Cycletile - Rendering Image and text into Writable BitmapImage

Im currently trying to implement a CycleTile within a scheduled task agent. I need Large-Tile-Images like this: (image on the left side, custom Background, text on the right side) http://s7.directupload.net/file/d/3361/54hbvlby_png.htm I think I…
IntegerWolf
  • 1,232
  • 1
  • 11
  • 21
2
votes
0 answers

Getting pixel array from isolatedstorage converted from jpeg

Trying to resolve this for days - (WP7) got it working 1st time in Win 8, help appreciated.. Simply I want to read a JPEG from my Isolated Storage, Convert the JPEG to Writable bitmap and then mess with the pixels. The code I'm currently trying is…
John Irvine
  • 156
  • 2
  • 7
1
vote
0 answers

System.AccessViolationException on rendering frame on WritableBitmap

I am rendering video frames on writable bitmap, and application crashing randomly after sometime, am monitoring memory and cpu load looks fine Frames are grabbed and queued for rendering from threadpool thread and am invoking following code on…
Dark Knight
  • 3,507
  • 8
  • 35
  • 44
1
2 3 4