Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: About charcter code pages Pin
Saksida Bojan3-Dec-09 20:38
Saksida Bojan3-Dec-09 20:38 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 7:01
bhaskarsgb4-Dec-09 7:01 
GeneralRe: About charcter code pages Pin
Saksida Bojan4-Dec-09 8:36
Saksida Bojan4-Dec-09 8:36 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 21:47
bhaskarsgb4-Dec-09 21:47 
GeneralRe: About charcter code pages Pin
Saksida Bojan4-Dec-09 21:58
Saksida Bojan4-Dec-09 21:58 
AnswerRe: About charcter code pages Pin
Luc Pattyn3-Dec-09 1:06
sitebuilderLuc Pattyn3-Dec-09 1:06 
GeneralRe: About charcter code pages Pin
bhaskarsgb4-Dec-09 7:04
bhaskarsgb4-Dec-09 7:04 
QuestionRender 2d function with 16 bit resolution? Pin
Mark H Bishop2-Dec-09 14:00
Mark H Bishop2-Dec-09 14:00 
I have a 2d function that can be represented in a grayscale Format32bppArgb bitmap. I simply divide each value of the function by the maximum value in the function then multiply by 255. I use a lockbits routine to set the pixels.

I have a reversible transformation (similar to an FFT) that I apply to the function and I can represent it the same way.

I wanted to store the transform in the bitmap. The trouble is, if I use an 8 bit color depth, it only has 256 discrete levels. This is too coarse for my application (I cannot inverse transform the data stored in the bitmap and obtain the original function). A 16 bit color depth would give me 65536 discrete levels and this would do nicely.

The trouble is, I have not found a way to render a 16 bit color depth bitmap. I seems that the required Format16bppGrayScale and format and the Format64bppArgb are not functional VS. (I use VS 2005). Most of what I have seen for a work around involves scaling the bitmap data to an 8 bit color depth format.

I would like to be able to both store and “see” the transformed function in 16 bit detail. (Having the visualization be based on a bitmap structure isn’t a necessary requirement for me.) I have looked at some alternate approaches (such as directx) for managing this task but I haven’t been able to noodle out exactly how to do it. The Google stuff I’ve found is pretty sketchy on the implementation steps for my limited skills.

Can anyone give me a boost?
AnswerRe: Render 2d function with 16 bit resolution? Pin
Luc Pattyn2-Dec-09 14:17
sitebuilderLuc Pattyn2-Dec-09 14:17 
GeneralRe: Render 2d function with 16 bit resolution? Pin
harold aptroot2-Dec-09 22:33
harold aptroot2-Dec-09 22:33 
Generalmore thoughts Pin
Mark H Bishop3-Dec-09 3:02
Mark H Bishop3-Dec-09 3:02 
GeneralRe: more thoughts Pin
harold aptroot3-Dec-09 4:16
harold aptroot3-Dec-09 4:16 
QuestionHow do I ensure that my thread is ready before my main thread continues ? Pin
abiemann2-Dec-09 12:08
abiemann2-Dec-09 12:08 
AnswerRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Luc Pattyn2-Dec-09 13:04
sitebuilderLuc Pattyn2-Dec-09 13:04 
AnswerRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Alan N2-Dec-09 13:17
Alan N2-Dec-09 13:17 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
David Skelly2-Dec-09 22:13
David Skelly2-Dec-09 22:13 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Nicholas Butler2-Dec-09 23:20
sitebuilderNicholas Butler2-Dec-09 23:20 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Alan N3-Dec-09 0:41
Alan N3-Dec-09 0:41 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
David Skelly3-Dec-09 4:46
David Skelly3-Dec-09 4:46 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
abiemann4-Dec-09 19:51
abiemann4-Dec-09 19:51 
QuestionAccessing ListView edit box Pin
shoelace2-Dec-09 9:48
shoelace2-Dec-09 9:48 
Questionaccess to textbox of user control Pin
farokhian2-Dec-09 9:45
farokhian2-Dec-09 9:45 
AnswerRe: access to textbox of user control Pin
Blue_Boy2-Dec-09 9:52
Blue_Boy2-Dec-09 9:52 
GeneralRe: access to textbox of user control Pin
farokhian2-Dec-09 10:27
farokhian2-Dec-09 10:27 
GeneralRe: access to textbox of user control Pin
Saksida Bojan2-Dec-09 10:34
Saksida Bojan2-Dec-09 10:34 

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.