[MBS] Picture.CopyARGBToMemoryBlock?
Is there a MBS plugin which supports the new 32-bit with alpha Xojo pictures? I'd like to make a single call such as: Picture.CopyARGBToMemoryBlock(memoryBlock,offset) and get all 32 bits of color data copied. For now I can probably do it with two separate calls, e.g.: pic.CopyXRGBtoMemoryblockMBS(d,0) pic.mask.CopyAtoMemoryblockMBS(d,0,0) but having it in a single call would be nice ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Picture.CopyARGBToMemoryBlock?
Am 31.05.2013 um 20:55 schrieb Michael Diehr m...@xochi.com: Is there a MBS plugin which supports the new 32-bit with alpha Xojo pictures? Well, alpha != alpha. I'd like to make a single call such as: Picture.CopyARGBToMemoryBlock(memoryBlock,offset) and get all 32 bits of color data copied. Well, do you need premultiplied or not? Currently you get with those two functions non premultiplied ARGB. If you want premultipied one, well, there is extra work involved. And Alpha channel images in RB are not equal on all platforms. Some have premultiplied and some not. This makes it quite difficult. Greetings Christian -- MBS Xojo Developer Conference 2013 More details and registration here: http://www.monkeybreadsoftware.de/realbasic/events/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Picture.CopyARGBToMemoryBlock?
Am 31.05.2013 um 20:55 schrieb Michael Diehr m...@xochi.com: For now I can probably do it with two separate calls, e.g.: pic.CopyXRGBtoMemoryblockMBS(d,0) pic.mask.CopyAtoMemoryblockMBS(d,0,0) don't we have already CopyARGBtoMemoryblockMBS(destination as memoryblock, offset as integer, MaskForAlpha as picture) as boolean to do this? You can pass mask and image. Greetings Christian -- MBS Xojo Developer Conference 2013 More details and registration here: http://www.monkeybreadsoftware.de/realbasic/events/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info