Am 22.10.2013 um 23:11 schrieb Sergio Tamborini <ml_ser...@system-i.it>:

> 
>  
> ResizedPicture=picture.ScaleImageAndMaskMBS(Picture.FromData(file.Data),100,100)

Please use temp variables here. Put file.data in a local variable and the 
picture before scaling.
This way you can see in debugger that Picture.FromData does not work with mask 
correctly here.
No mask is provided. So ScaleImageAndMaskMBS can't work as you expect.

Using PNGStringToPictureMBS instead fixes it.


by the way, this is a waste of resources:

outputFile = New FolderItem(MyFolder.child(nomefile))

thew new Folderitem is not needed (it make a copy of the folderitem):

outputFile = MyFolder.child(nomefile)


PS: Answer would have been faster with sample project off list.

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to