smarts1l
smarts1l
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
thank you so much for your help but I have fixed the problem by changing the function to another one and this works fine. I don't know why the other function didn't work though
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
and afterwards the same pixel of 53,255,107 givesd a value of 0,0,0
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
exactly a pixel of 53,255,107 gives a value of 0,18,0
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
if it was argb or rgba I would at least see a value in common so it cant be that
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
all pixels are wrong, none of them share any value woith the supposed result
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
like for a pixel of 85,160,34 it gave a value of 0,18,0 and for some pixels it says that they are 0,0,0 (black when they clearly arent)
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
the method gets the wrong pixels but i cant see why.
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
int width = image.PixelWidth;
int height = image.PixelHeight;
string[] compressed = new string[height * width];
string oldr = "0"; string oldg = "0"; string oldb = "0";
int godown = 0;
var path = op.FileName;
int stride = width * 4;
byte[] pixelData = new byte[height * stride];
image.CopyPixels( pixelData, stride, 0);

for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
int index = y * stride + 4 * x;
byte blue = pixelData[index];
byte green = pixelData[index + 1];
byte red = pixelData[index + 2];

int arraySlot = x + (y * width); int StandardArraySlot = arraySlot - godown;
string r = red.ToString(); string g = green.ToString(); string b = blue.ToString();
MessageBox.Show(r + " " + g + " " + b);
int width = image.PixelWidth;
int height = image.PixelHeight;
string[] compressed = new string[height * width];
string oldr = "0"; string oldg = "0"; string oldb = "0";
int godown = 0;
var path = op.FileName;
int stride = width * 4;
byte[] pixelData = new byte[height * stride];
image.CopyPixels( pixelData, stride, 0);

for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
int index = y * stride + 4 * x;
byte blue = pixelData[index];
byte green = pixelData[index + 1];
byte red = pixelData[index + 2];

int arraySlot = x + (y * width); int StandardArraySlot = arraySlot - godown;
string r = red.ToString(); string g = green.ToString(); string b = blue.ToString();
MessageBox.Show(r + " " + g + " " + b);
15 replies
CC#
Created by smarts1l on 11/24/2023 in #help
Error with getting pixels
yes it is that in my code but I think that just pasting it into dicord has deleted it
15 replies