Click here to Skip to main content
16,011,947 members
Home / Discussions / WPF
   

WPF

 
QuestionSound animation Pin
Member 343091110-Jun-09 12:43
Member 343091110-Jun-09 12:43 
AnswerRe: Sound animation Pin
Christian Graus10-Jun-09 14:49
protectorChristian Graus10-Jun-09 14:49 
QuestionHow do you save a lossless rotation of a JPEG file under WPF? Pin
fjparisIII10-Jun-09 4:26
fjparisIII10-Jun-09 4:26 
AnswerRe: How do you save a lossless rotation of a JPEG file under WPF? Pin
Christian Graus10-Jun-09 8:50
protectorChristian Graus10-Jun-09 8:50 
GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? Pin
fjparisIII10-Jun-09 9:19
fjparisIII10-Jun-09 9:19 
GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? Pin
Christian Graus10-Jun-09 9:24
protectorChristian Graus10-Jun-09 9:24 
GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? [modified] Pin
fjparisIII10-Jun-09 9:48
fjparisIII10-Jun-09 9:48 
GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? Pin
Christian Graus10-Jun-09 9:56
protectorChristian Graus10-Jun-09 9:56 
fjparisIII wrote:
This assumption is wrong, that's your conceptual mistake.


Well, no. Once your image is in a bitmap, it's raw data, it's not JPEG compressed.

fjparisIII wrote:
There has to be a way of reading the image data into memory intact, without using a decoder.


OK, I get it now. You rotate it, as a JPEG, in memory, not as a bitmap. Thus keeping the artefacts you have, but not creating new ones ?

fjparisIII wrote:
Evidentally you've never heard of lossless JPEG rotation, but what do you think Photoshop does, or any other self-respecting image processing software?


I was aware they did that, but I'd never taken the time to wonder what it meant. I believe the Atalasoft library we use for DICOM compression offers what you're talking about.

fjparisIII wrote:
I mean if I have to I'll go to GDI+ to accomplish this, I'll do it, but that would really rub me the wrong way. I didn't sign up to WPF to go outside of it every time I turn around.


I wrote a program in WPF, it's basically an image viewer. Our images are huge, and memory management in WPF is a joke ( in fact, we hard reset the GC regularly, or WPF just flat out dies ). So, when we load images from our DB, we resize them to the size of the screen, and then reload as we zoom, to save memory. We have two types of image, illustrations that are pngs, and photos that are jpgs. I don't know if it's the format, or the type of data, but our jpegs, when resized, would get all sorts of horrible artefacts. I was a Microsoft MVP at the time, so I theoretically had a fast track to support. I reported this, they responded that there was no problem. I sent a sample app to show the issue, got the same response. I wrote back and insisted, they finally looked at it and admitted it was broken. This was .NET 3.0, two years ago. The bug is still there, and WPF still does not expose Dispose methods, or clean up after images properly. So, get used to horrible imaging support in WPF. We resize our images using GDI+.

Christian Graus

Driven to the arms of OSX by Vista.

"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? (STILL NOT SOLVED) Pin
fjparisIII10-Jun-09 10:39
fjparisIII10-Jun-09 10:39 
GeneralRe: How do you save a lossless rotation of a JPEG file under WPF? Pin
Christian Graus10-Jun-09 11:00
protectorChristian Graus10-Jun-09 11:00 
QuestionHow do I make my 3D models look more realistic Pin
Etienne_12310-Jun-09 3:40
Etienne_12310-Jun-09 3:40 
QuestionMultiple client access in a wcf service Pin
JS 200810-Jun-09 3:26
JS 200810-Jun-09 3:26 
AnswerRe: Multiple client access in a wcf service Pin
Mark Salsbery10-Jun-09 6:57
Mark Salsbery10-Jun-09 6:57 
QuestionSilverlight + WCF Communication Pin
JS 200810-Jun-09 3:25
JS 200810-Jun-09 3:25 
AnswerRe: Silverlight + WCF Communication Pin
Mark Salsbery10-Jun-09 6:53
Mark Salsbery10-Jun-09 6:53 
GeneralRe: Silverlight + WCF Communication Pin
JS 200810-Jun-09 17:54
JS 200810-Jun-09 17:54 
GeneralRe: Silverlight + WCF Communication Pin
Mark Salsbery11-Jun-09 10:22
Mark Salsbery11-Jun-09 10:22 
QuestionHow to get images in Application's folder Pin
Nekkantidivya10-Jun-09 2:40
Nekkantidivya10-Jun-09 2:40 
AnswerRe: How to get images in Application's folder Pin
User 27100910-Jun-09 5:00
User 27100910-Jun-09 5:00 
AnswerRe: How to get images in Application's folder Pin
ABitSmart10-Jun-09 5:03
ABitSmart10-Jun-09 5:03 
AnswerRe: How to get images in Application's folder Pin
varun 200924-Feb-10 20:35
varun 200924-Feb-10 20:35 
QuestionWPF Datagrid? Pin
S Rajput9-Jun-09 15:37
S Rajput9-Jun-09 15:37 
AnswerRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 15:48
protectorChristian Graus9-Jun-09 15:48 
GeneralRe: WPF Datagrid? Pin
S Rajput9-Jun-09 16:37
S Rajput9-Jun-09 16:37 
GeneralRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 17:17
protectorChristian Graus9-Jun-09 17:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.