I want to know the best way (or any way) to create a 1Bit image from another image.
I am taking a screen shot of a 3D object on the stage.
I want to create a 1Bit image of that object where any part of the object is black and the Rest is White.
So far I can capture the 3D object in an image with the Lingo
member("StageImage"
.image = (the stage).image
This works if the 3D model is set to Direct to Stage = False
I then can turn the captured image into a One bit image with the Lingo
member("StageImage"
.image = (the stage).image
srcImg = member("StageImage"
.image
onebitImage = image(srcImg .width, srcImg .height, 1)
onebitImage.copyPixels(srcImg , srcImg .rect, srcImg .rect)
member("1bit"
.image = onebitImage
The Problem with this is that if the 3D models textures contain anything light coloured then that area of the image becomes white instead of black in the 1Bit Image.
Does anyone have a way to turn any image into a 1 bit image where only the outside background colour is turned white and everything else is turned black.
Sort of like the trim white space feature when importing images.
Please help me if you have any ideas.
I am taking a screen shot of a 3D object on the stage.
I want to create a 1Bit image of that object where any part of the object is black and the Rest is White.
So far I can capture the 3D object in an image with the Lingo
member("StageImage"
This works if the 3D model is set to Direct to Stage = False
I then can turn the captured image into a One bit image with the Lingo
member("StageImage"
srcImg = member("StageImage"
onebitImage = image(srcImg .width, srcImg .height, 1)
onebitImage.copyPixels(srcImg , srcImg .rect, srcImg .rect)
member("1bit"
The Problem with this is that if the 3D models textures contain anything light coloured then that area of the image becomes white instead of black in the 1Bit Image.
Does anyone have a way to turn any image into a 1 bit image where only the outside background colour is turned white and everything else is turned black.
Sort of like the trim white space feature when importing images.
Please help me if you have any ideas.