I have an array of ushorts and want to iterate over the array and check if the first two bits of that ushort are 11 if so I want to clear them. Howeve ...
I have an array of ushorts and want to iterate over the array and check if the first two bits of that ushort are 11 if so I want to clear them. Howeve ...
When a ushort? is passed to Assert.Equal it is trying to cast the two argumants to string. It works fine for int?. If I change the code to ushort test ...
I need to convert an int[] array to a ushort[] array in order to use the method Array.Copy() from theses two types of array. Which method should I us ...
I have a 16 bit ushort array with values ranging from 0 to 65535 which I want to convert into a grayscale Image to save. What I tried doing was write ...
So I have some constants: And then I have a major version number, minor version number, and service pack number, that, when you concatenate those t ...
This may be a bit of a weird question, however I have made a program which communicates with another program (the other program was not made by me). I ...
I'm trying to convert a ushort to bytes. However, when I try this: Instead of: Is this a bug? Or I am just doing something silly? I'll be writi ...
I have researched all of the questions that match my query and tried their solutions however none appear to work for me so I am asking how I convert a ...
I want to take max value of ushort list and when that list is empty I want set "1" for default value. For example: In my Example Visual Studio Sho ...
I wrote a method to get data which looks like: Now in my usage, I need the data as ushort[], so I declare a variable: when I call this method in ...
I am working on C# application (.Net 4.0). At some situation I want to append the multiple ushort values as mentioned below And I want the result ...
I have a 12bit image that I want to work with in Opencv, such as detecting blobs etc. The image is now a Uint16 array. And i want to convert it to O ...
I have an application that generates 16 bit grey scale images. Currently these images are generated as an awt BufferedImage with data type DataBuffer. ...
I'm updating some old code written by another programmer, and i need to do some changes. I have an unsigned integer stored into Short var and need to ...
I am new to C sharp, and i am trying to do the following but getting an error as not able to convert short to ushort ...
I have a ushort array that needs converting into a byte array to be transferred over a network. Once it gets to its destination, I need then reconver ...
I'm stuck with variables format. I know this is a stupid question but I'm on it for 2 hours and I'm losing my mind. The problem is: I have: And I ...
I have two ushort integer. Integers : 2206,41247 I want to convert to float this integers. For this; I coded something in Linqpad. This functions ...
Currently, I am declaring and initializing a list like this: I will eventually have more ushort lists that will contain a lot more than 10 values ...