Click here to Skip to main content
15,392,226 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: 3D C# windows from Pin
MaulikDusara26-Jun-13 9:04
MemberMaulikDusara26-Jun-13 9:04 
QuestionThick Line Algorithm Pin
A_Fa5-Jan-13 20:56
MemberA_Fa5-Jan-13 20:56 
AnswerRe: Thick Line Algorithm Pin
UweKlatt18-Jan-13 1:50
MemberUweKlatt18-Jan-13 1:50 
GeneralRe: Thick Line Algorithm Pin
Ingo30-Jan-13 2:29
MemberIngo30-Jan-13 2:29 
AnswerRe: Thick Line Algorithm Pin
Ingo30-Jan-13 2:28
MemberIngo30-Jan-13 2:28 
AnswerRe: Thick Line Algorithm Pin
TheRealRarius21-Mar-13 0:35
MemberTheRealRarius21-Mar-13 0:35 
AnswerRe: Thick Line Algorithm Pin
Brian J Rothwell12-Aug-14 12:24
MemberBrian J Rothwell12-Aug-14 12:24 
QuestionContouring problem using pixel shader Pin
jimSehn11-Dec-12 3:44
MemberjimSehn11-Dec-12 3:44 
Background
I have an application that displays (large 2500X3000) 12-bit grayscale images within an image control. I am using the Gray16 pixel format and I am scaling the data to 16 bits by simple bit-shifting. Images have low contrast, so I implemented functionality to adjust brightness and contrast. The functionality was based on setting the image's Effect to a pixel shader that accepts brightness and contrast parameters. Obviously, this implementation is very efficient and avoids moving large amount of data around in memory.

Problem
When adjusting the contrast to a high setting, the displayed image exhibits unacceptable contouring, as though the bit-depth of the image has been reduced to 5 or 6. As a baseline test, I implemented the same functionality without a pixel shader - I applied the contrast and brightness settings to the image, reduced the bit-depth to 8 bits and displayed the image with the Gray8 pixel format (one that I have a great deal of familiarity with). The latter implementation showed little to no contouring.

Question
Does anyone know why applying a pixel shader would reduce the apparent bit-depth of an image? Does the pixel shader HLSL code work on reduced bit-depth data, e.g. eight or less, that is a function of the hardware/drivers or the OS?
All data in the pixel shader are floats that are scaled from 0 to 1, so you haven't any idea of the quantization level (at least to my knowledge)

Thanks in advance for any feedback
AnswerRe: Contouring problem using pixel shader Pin
oPhoenixo21-Dec-12 4:01
MemberoPhoenixo21-Dec-12 4:01 
Questionhue and saturation in direct show Pin
mazizi16-Oct-12 21:09
Membermazizi16-Oct-12 21:09 
AnswerRe: hue and saturation in direct show Pin
Pete O'Hanlon16-Oct-12 23:23
mvaPete O'Hanlon16-Oct-12 23:23 
Questiongraphics code needed Pin
chandugarsari26-Sep-12 18:54
Memberchandugarsari26-Sep-12 18:54 
AnswerRe: graphics code needed Pin
Richard MacCutchan26-Sep-12 21:40
mveRichard MacCutchan26-Sep-12 21:40 
AnswerRe: graphics code needed Pin
Thomas Daniels29-Sep-12 8:09
mentorThomas Daniels29-Sep-12 8:09 
QuestionApplying Texture for a complied OpenGl List Pin
Anand V_20-Sep-12 20:18
MemberAnand V_20-Sep-12 20:18 
QuestionRadius Edge Control with Rect Points Showing Pin
Mark Regal20-Aug-12 5:31
MemberMark Regal20-Aug-12 5:31 
AnswerRe: Radius Edge Control with Rect Points Showing Pin
Pete O'Hanlon20-Aug-12 6:10
mvaPete O'Hanlon20-Aug-12 6:10 
GeneralRe: Radius Edge Control with Rect Points Showing Pin
Mark Regal20-Aug-12 6:38
MemberMark Regal20-Aug-12 6:38 
QuestionHow can I draw a hexagon with children in VB.NET code? Pin
Tonielro21-Jul-12 21:46
MemberTonielro21-Jul-12 21:46 
AnswerRe: How can I draw a hexagon with children in VB.NET code? Pin
Richard MacCutchan22-Jul-12 0:19
mveRichard MacCutchan22-Jul-12 0:19 
GeneralRe: How can I draw a hexagon with children in VB.NET code? Pin
Tonielro22-Jul-12 0:43
MemberTonielro22-Jul-12 0:43 
GeneralRe: How can I draw a hexagon with children in VB.NET code? Pin
Richard MacCutchan22-Jul-12 0:52
mveRichard MacCutchan22-Jul-12 0:52 
GeneralRe: How can I draw a hexagon with children in VB.NET code? Pin
Tonielro22-Jul-12 1:15
MemberTonielro22-Jul-12 1:15 
GeneralRe: How can I draw a hexagon with children in VB.NET code? Pin
CDP180222-Jul-12 1:28
MemberCDP180222-Jul-12 1:28 
GeneralRe: How can I draw a hexagon with children in VB.NET code? Pin
Tonielro22-Jul-12 1:37
MemberTonielro22-Jul-12 1:37 

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.