| | | | |
|
|
|
|
|
|
All products > AnyShape Xtra
- Setting shape by projector takes too much time, even to 2-3 seconds, why?
- How to create 1-bit bitmap in Director?
- I have determined projector window shape with 1-bit bitmap (oval), but I still see a rectangular border on the edges. Where does it come from and how to remove it?
- How to change window shape dynamically?
- Setting shape by projector takes too much time, even to 2-3 seconds, why?
32-bit bitmap may have been used, which is very uneconomical and inefficient. The bigger bitmap color palette is the longer the whole process takes. The only goal of bitmap imported to AnyShape Xtra is to set shape, so 1-bit bitmap is enough. For example, white color can mean transparent pixels, black color - opaque.
Back to top
- How to create 1-bit bitmap in Director?
You should create a typical bitmap (Insert > Media Element > Bitmap), then open the transformation window (Modify > Transform Bitmap) and set option Color Depth to value 1 bit.
Back to top
- I have determined projector window shape with 1-bit bitmap (oval), but I still see a rectangular border on the edges. Where does it come from and how to remove it?
If a bitmap of shape for AnyShape Xtra is loaded from projector cast member, we should take note of Trim White Space option, which can be found in Cast member properties window for the bitmap given. This option is checked by default and then Director trims a bitmap removing unnecessary white space. If you create bitmap with the specific size set, given by the white border, this border will be cancelled by Director, causing the bitmap size to small and not fit to projector window size - hence visible border. To avoid it, you should disable Trim White Space option and take care that shape bitmap size are identical with projector window size. Another option is to create bitmap with black border and white shape and to define the transparent color as black (default transparent color is white).
Back to top
- How to change window shape dynamically?
You should use Lingo function to load bitmap and set shape. It can be done as follows:
on exitFrame
member("AnyShape1").LoadBitmapFromCastMem("MyBitmaps", 2)
member("AnyShape1").SetShape()
end where "AnyShape1" is name of given cast mebr, "MyBitmaps" is name of cast with shape bitmaps, 2 is index of the next bitmap.
Back to top
|
|
|
|
|
|
|