Pages
-
Recent Posts
Archives
Tag Archives: pixel
C# Snippet for Accessing Bitmap Data with Unsafe Code
Since GetPixel is slow and I keep having to access bitmap data with unsafe code, I thought it would be a nice thing to make into a snippet.
Posted in .net, C#, Programming
Tagged .NET, C#, pixel, Programming, Snippet, unsafe, Visual Studio
Leave a comment
Making sure a number is between 0 and 255
Recently while reworking the code for the Ascgen dotNET I needed to make sure that a variable is between 0 and 255 before converting it to a byte, and I needed it to be as fast as possible since it … Continue reading
Posted in .net, C#, Programming
Tagged .NET, between, bitwise_operations, byte, C#, dotnet, limit, math, max, min, number, pixel, Programming, Theory
Leave a comment