Windows 7 - Custom Operation - RealWorld forums

Log-in or register.

Windows 7 - Custom Operation

Causes error, wont execute operation
Anonymous
on January 5th 2010

I regularly use this Custom Operation (below) to create dimmed icons. However, in Windows 7 this causes 'The Attempted operation failed with error code 0x80004005. Please verify that there is enough free memory and that the configuration of the operation is correct.

This is the exact same code that worked fine on my XP machine, before upgrading.

Perhaps you could check?

Thanks

MB

'CUSTOM OPERATION
var image = Document.RasterImage;
var sizeX = image.sizeX;
var sizeY = image.sizeY;
//Colours are Alpha (transparency), Blue, Green, Red
//var color = 0xffffffff; // this is White
var color = 0x00000000; //This is transparent
for (x=0; x<sizeX; x )
for (y=0; y<sizeY; y )
if ((x y)&1)
image.SetPixel(x, y, 0, 0, color);

Page views: 1170       Posts: 1      
Vista & Win 7 icons
I wish there were...
What about ICL files?