Click here to Skip to main content
15,913,944 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:13
Andiko23-Mar-18 4:13 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:21
Andiko23-Mar-18 4:21 
GeneralRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 4:22
mveRichard Deeming23-Mar-18 4:22 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:46
Andiko23-Mar-18 4:46 
GeneralRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 4:58
mveRichard Deeming23-Mar-18 4:58 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 5:11
Andiko23-Mar-18 5:11 
QuestionEncoding Hex Write Data Pin
Orochi9727-Feb-18 6:08
Orochi9727-Feb-18 6:08 
QuestionRe: Encoding Hex Write Data Pin
Eddy Vluggen27-Feb-18 8:02
professionalEddy Vluggen27-Feb-18 8:02 
QuestionRe: Encoding Hex Write Data Pin
Orochi9727-Feb-18 22:45
Orochi9727-Feb-18 22:45 
AnswerRe: Encoding Hex Write Data Pin
Eddy Vluggen28-Feb-18 1:13
professionalEddy Vluggen28-Feb-18 1:13 
QuestionBest Tools For .NET Development Pin
Priyanka Kale26-Feb-18 0:31
Priyanka Kale26-Feb-18 0:31 
AnswerRe: Best Tools For .NET Development Pin
Richard MacCutchan26-Feb-18 0:32
mveRichard MacCutchan26-Feb-18 0:32 
AnswerRe: Best Tools For .NET Development Pin
Eddy Vluggen26-Feb-18 0:38
professionalEddy Vluggen26-Feb-18 0:38 
AnswerRe: Best Tools For .NET Development Pin
Gerry Schmitz26-Feb-18 5:15
mveGerry Schmitz26-Feb-18 5:15 
QuestionImplementation of Chat Bot Pin
Member 1362292025-Feb-18 18:46
Member 1362292025-Feb-18 18:46 
AnswerRe: Implementation of Chat Bot Pin
Pete O'Hanlon25-Feb-18 20:49
mvePete O'Hanlon25-Feb-18 20:49 
Question16bit grayscale png export? (and import?) Pin
primem0ver22-Feb-18 10:00
primem0ver22-Feb-18 10:00 
AnswerRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz22-Feb-18 11:49
mveGerry Schmitz22-Feb-18 11:49 
GeneralRe: 16bit grayscale png export? (and import?) Pin
primem0ver22-Feb-18 13:47
primem0ver22-Feb-18 13:47 
GeneralRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz22-Feb-18 14:07
mveGerry Schmitz22-Feb-18 14:07 
AnswerRe: 16bit grayscale png export? (and import?) Pin
Eddy Vluggen22-Feb-18 14:17
professionalEddy Vluggen22-Feb-18 14:17 
GeneralRe: 16bit grayscale png export? (and import?) Pin
primem0ver22-Feb-18 15:54
primem0ver22-Feb-18 15:54 
GeneralRe: 16bit grayscale png export? (and import?) Pin
Eddy Vluggen23-Feb-18 3:16
professionalEddy Vluggen23-Feb-18 3:16 
GeneralRe: 16bit grayscale png export? (and import?) Pin
primem0ver23-Feb-18 10:37
primem0ver23-Feb-18 10:37 
Hmm... well it appears that either you don't understand colorspaces and how color values work, or you didn't realize that I am trying to display the picture while working on it (which to me is a given). Doing what you suggest will not produce a grayscale picture as assigning a pixel in ARGB format the value of 65535 will give the G (green) channel a value of 255 and a blue channel value of 255 (making yellow) and an ARGB pixel value of 255 will give solid blue.

Furthermore, when .NET reads a 16bit grayscale picture, it DOES use the ARGB (specifically the 32bbpARGB) format and it DOES loose the data because it truncates the 16 bit value to an 8 bit value, losing the less significant bits (so 65535 is read as 255 and 255 is read as zero). You can find documentation about this issue all over the internet. It has the same effect as dividing the 16 bit values by 256. It then fills each of the color channels (RGB) with this 8 bit value so that they are all the same, giving a grayscale picture. Otherwise, you would not see a grayscale picture. If you then try to save the file, it will result in an 8bit grayscale picture. If you try using the 16bbpGrayscale pixel format and then try to save it, .NET throws an exception because 16 bit grayscale picture loading and saving are not supported by .NET (hence the need for this thread).

modified 23-Feb-18 16:53pm.

GeneralRe: 16bit grayscale png export? (and import?) Pin
Eddy Vluggen23-Feb-18 23:31
professionalEddy Vluggen23-Feb-18 23:31 

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.