If its not to much work could you add an option to this screen to quickly flip an image as you can see I have this…
If its not to much work could you add an option to this screen to quickly flip an image as you can see I have this icon which is a back arrow but I need it to face the other way. Ran into this a few times but forgot to suggest it. cheers.
]]>
< ![CDATA[
Yeah that’s what I did had to remove the label though, yeah its not an important feature. I just thought if its just a couple lines of code would be nice if he added it. There’s been wallpapers I’ve wanted to flip aswell so would be cool if we can do that aswell but again its not really needed.
]]>
< ![CDATA[
//launch from the item
i=LL.getEvent().getItem();
it=i.getDefaultIcon();
bit=it.getBitmap();
w=bit.getWidth();
h=bit.getHeight();
newit=LL.createImage(w,h);
can=newit.draw();
mat=Matrix();
mat.setRotate(180,w/2,h/2);
pa=Paint();
pa.setFlags( Paint().FILTER_BITMAP_FLAG);
can.drawBitmap(bit,mat,pa);
i.setCustomIcon(newit);
]]>
< ![CDATA[
Is there anything scripts can’t do 🙂 ty
]]>
< ![CDATA[
That’s not a bad suggestion and this isn’t difficult to implement, but to be honest this is a minor thing and I don’t have the time for this.
TrianguloY nice ! A small suggestion though: instead of setRotate(180,w/2,h/2) I would suggest a setScale(-1, 1, w/2, 0) and to remove the FILTER_BITMAP_FLAG as it should be a pixel perfect operation
]]>
< ![CDATA[
The flag was because I just copied the script I’m working on to make the tile icons and changed the matrix. 😛
I sometimes forget scale is more powerful than just bigger/smaller 😉 Thanks
]]>