Re: Cropping an image

2018-05-31 Thread Monte Goulding via use-livecode
This reminds me I was looking at this stuff the other day and it’s really not a big job to add a pixelData property that is ARGB instead of the xRGB we have for imageData which would reduce the data you are dealing with if you want to set the alpha at the same time. Good community contribution

Cropping an image

2018-05-31 Thread Ralph DiMola via use-livecode
OK, Here's the deal. Although there is a byte for alpha in the z buffer (imagedata) it seems to be ignored. The alpha data is only in the alphadata property. You also must set the text property to empty before you set the new image(imagedata) and alpha data(alphadata). This example just does a

Cropping an image

2018-05-31 Thread Ralph DiMola via use-livecode
I am trying to take the first n rows and the last n rows of an image and deleting the center (from top to bottom) and pasting the top and bottom together. The imagedata of an image control seems to be a z buffer with 4 bytes per pixel. I put the first n rows followed by the last n rows into a