Strange effect when loading png image in jucer


#1

Hi,

I have a strange problem with my leftmost pixelrow(s) appering to the right of the image, and the top pixelrow(s) on the bottom of the image.

Code generated by the Jucer enclosed.

regards,
Rune

static const unsigned char resource_ADIGHumanSynchronizer_testknapp_png[] = { 137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,36,0,0,0,36,8,6,0,0,0,225,0,152,152,0,0,0,9,112,72,89,115,0,0,11,19,0,
0,11,19,1,0,154,156,24,0,0,0,4,103,65,77,65,0,0,175,200,55,5,138,233,0,0,0,25,116,69,88,116,83,111,102,116,119,97,114,101,0,65,100,111,98,101,32,73,109,97,103,101,82,101,97,100,121,113,201,101,60,0,0,
4,138,73,68,65,84,120,218,98,100,160,12,200,3,177,2,22,241,131,228,26,8,16,64,164,34,126,32,206,7,226,253,64,252,159,0,62,15,196,253,64,172,79,138,5,0,1,196,72,66,72,52,0,113,2,178,32,39,39,39,131,148,
148,20,195,191,127,255,224,248,227,199,143,12,159,62,125,66,215,127,1,136,39,0,241,66,66,22,1,4,16,35,17,33,82,0,117,12,196,101,242,242,12,54,54,54,12,58,58,58,12,188,188,188,12,63,126,252,0,227,159,63,
127,194,49,200,81,143,30,61,98,184,127,255,62,195,147,39,79,24,126,255,254,13,211,126,0,234,169,135,184,44,4,8,32,124,14,2,5,245,2,32,54,0,113,244,244,244,24,194,195,195,25,84,85,85,193,150,34,59,4,221,
65,200,226,95,190,124,97,184,113,227,6,195,131,7,15,24,254,252,249,3,50,234,3,212,147,88,67,11,32,128,152,240,56,230,0,204,49,32,224,234,234,202,160,171,171,75,114,178,99,101,101,5,123,194,212,212,148,
129,143,143,15,36,36,0,245,104,60,54,245,0,1,196,132,199,49,2,106,106,106,12,17,17,17,96,193,25,51,102,48,220,187,119,143,100,7,253,255,255,31,76,115,112,112,128,163,89,88,88,24,38,133,213,81,0,1,196,
140,37,205,128,18,160,128,134,134,6,195,236,217,179,25,172,173,173,25,206,156,57,195,240,248,241,99,112,208,91,89,89,49,48,49,49,129,131,31,132,255,254,253,11,167,97,24,89,28,93,13,15,15,15,195,247,239,
223,193,209,9,4,1,80,207,195,211,20,64,0,161,135,208,6,144,99,52,53,53,25,22,46,92,8,11,98,134,214,214,86,6,110,110,110,112,58,88,176,96,1,220,215,228,2,105,105,105,112,134,64,178,147,31,198,1,8,32,100,
7,129,130,207,1,228,136,238,238,110,184,99,64,0,228,171,134,6,72,70,59,120,240,32,195,225,195,135,41,46,208,68,68,68,24,152,153,153,97,105,106,2,76,28,32,128,144,29,4,182,49,37,37,133,65,91,91,27,195,
0,80,46,139,140,140,4,179,151,46,93,10,206,214,148,0,80,180,11,9,9,193,184,9,208,178,142,1,32,128,152,144,66,71,65,86,86,150,161,164,164,4,167,33,32,7,129,28,251,237,219,55,134,249,243,231,131,211,2,161,
196,140,15,176,179,179,131,115,33,114,128,0,4,16,204,65,160,114,129,161,172,172,140,160,33,32,7,115,113,113,81,173,46,66,50,11,148,192,25,0,2,136,5,26,84,224,242,198,219,219,155,96,22,6,37,238,150,150,
22,120,41,13,42,0,201,5,32,243,64,33,196,200,200,8,98,131,210,146,61,64,0,49,193,92,230,227,227,195,32,32,32,64,116,130,164,38,96,97,97,129,49,29,0,2,136,9,185,106,160,6,32,167,72,128,230,54,176,131,0,
2,136,9,214,158,177,181,181,101,24,40,0,202,113,48,0,16,64,76,180,242,53,73,109,32,70,120,29,111,0,16,64,32,7,57,128,43,48,125,125,186,133,8,186,7,145,28,36,0,16,64,32,7,61,0,177,30,62,124,56,96,81,6,
170,227,96,13,57,128,0,130,59,232,195,135,15,12,131,0,124,0,8,32,38,104,131,105,64,67,8,212,244,133,130,7,0,1,196,4,109,110,96,173,48,105,157,152,177,69,25,64,0,49,65,219,35,84,169,193,201,201,173,160,
208,129,54,109,193,77,17,128,0,98,130,246,161,62,128,106,111,122,56,10,29,32,117,0,64,49,245,16,32,128,152,144,154,147,12,157,157,157,116,41,153,145,193,215,175,95,97,76,112,155,8,32,128,152,144,57,199,
142,29,99,56,122,244,40,221,66,7,228,24,104,130,254,0,109,57,50,0,4,16,204,65,15,97,142,42,44,44,4,247,171,104,157,118,64,233,6,201,30,80,243,7,204,1,8,32,244,22,227,7,80,199,174,185,185,153,230,217,252,
197,139,23,48,135,30,64,238,163,1,4,16,178,131,62,194,154,34,107,215,174,101,168,172,172,164,73,218,1,101,113,80,103,1,218,142,250,128,222,61,7,8,32,38,44,163,22,96,5,27,54,108,96,168,171,171,163,122,
121,115,235,214,45,88,23,232,3,180,30,69,41,145,1,2,8,91,109,191,16,230,168,205,155,55,51,100,102,102,130,131,151,226,58,1,88,53,157,61,123,22,214,14,135,57,230,34,186,58,128,0,98,198,161,255,34,180,142,
115,0,58,134,99,251,246,237,12,191,126,253,2,15,52,128,26,83,164,116,18,63,127,254,204,112,225,194,5,134,59,119,238,192,162,249,2,52,105,92,196,102,49,64,0,17,26,253,144,135,150,81,14,176,6,57,168,143,
110,96,96,192,160,168,168,8,118,28,182,129,134,55,111,222,128,235,198,219,183,111,51,188,122,245,10,217,188,9,208,204,131,51,27,3,4,16,177,227,67,241,208,172,105,128,44,8,234,87,129,218,225,32,159,195,
198,135,64,14,192,210,240,95,0,117,8,193,26,28,32,128,72,69,250,208,81,177,243,68,140,160,237,135,142,182,201,147,98,1,64,128,1,0,52,143,30,71,102,208,79,160,0,0,0,0,73,69,78,68,174,66,96,130,0,0};

const char* AHSLookAndFeel::testknapp_png = (const char*) resource_ADIGHumanSynchronizer_testknapp_png;
const int AHSLookAndFeel::testknapp_pngSize = 1293;


#2

can you just email me the png so I can try it?