Questions tagged [jpegbitmapencoder]
6 questions
9
votes
3 answers
Windows update KB4040972/73 causes black images with WPF classes
I have an application relying on Deep zoom images (convertion from a PNG to a pyramid of JPGs in various scale) which we use DeepZoomTools.dll for. This is relying on PresentationCore.dll and has been working fine for years.
After the rollout of…

Johan
- 305
- 1
- 11
2
votes
3 answers
How can I save an image from ink canvas?
I am trying to save an image from ink canvas however it does not create any file after saving, this is my code:
RenderTargetBitmap rtb = new RenderTargetBitmap(
(int)canvas.Width, (int)canvas.Height, 0, 0,…

aripian
- 85
- 7
2
votes
3 answers
How to save image using JpegBitmapEncoder
According to the image encoding example here I should be able to use JpegBitmapEncoder to encode an image for saving as a jpeg file but get this compile error:
error CS1503: Argument 1: cannot convert from 'System.Windows.Controls.Image' to…

jacknad
- 13,483
- 40
- 124
- 194
0
votes
1 answer
JpegBitmapEncoder / RenderTargetBitmap - excessive sharpening since .net 2 vs 4.7.2
I've been working on migrating legacy ASP.Net/C# system to Azure.
Initially just changing the minimal amount possible, but part of that is moving to updated .Net framework (2/3/3.5 => 4.7+)
Part of this is a tool which creates image previews in…

Daf
- 61
- 7
0
votes
1 answer
c# JpegBitmapEncoder save and overwite
I am trying to add tags to a jpeg file.
However, my algorithm prevents me from overwriting the jpeg file, and allows me only to create a new file.
static string file = @"C:\temp\check.jpg";
static void Main(string[] args)
{
…

Ofirster
- 109
- 8
0
votes
1 answer
Saving an image using FileStream sometimes results in corrupt files
I have an application where by I take a picture and press a save button and save the image to the computer. This works fine the majority of the time. But I am seeing some of my users with corrupt images. These images are about the right number of…

JKennedy
- 18,150
- 17
- 114
- 198