mmm, ok. that's odd no? to rescale the bitmap as they are both have the same
dimension.

i'll try though.


On Wed, Dec 2, 2009 at 11:19 AM, Fabrice3D <[email protected]> wrote:

> rescale your map before compose...
>
> here a snipet
>
> private function resizeMap(originalbmd:BitmapData,
> targetbmd:BitmapData):BitmapData
>                {
>                        var tmp:BitmapData = new
> BitmapData(originalbmd.width, originalbmd.height, targetbmd.transparent,
> targetbmd.transparent? 0x00FFFFFF : 0x000000);
>                        var W:Number = originalbmd.width/targetbmd.width;
>                        var H:Number = originalbmd.height/targetbmd.height;
>                        var sclmat:Matrix =  new Matrix();
>                        sclmat.scale(W, H);
>                        tmp.draw(targetbmd, sclmat, null, "normal",
> targetbmd.rect, true);
>                        return tmp;
>                }
>
> Fabrice
>
> On Dec 2, 2009, at 11:51 AM, quinrou . wrote:
>
>  Hi,
>>
>> I have composed a material out of 2 BitmapFileMaterial. Both material have
>> the same dimension 128x128 px. However the second added image is slightly
>> smaller then the 1st first one.
>> So on the right and bottom of my plane I have smaller section where a bit
>> of the 2nd texture is missing.
>>
>> What can i do to avoid this?
>>
>> thanks
>> S
>>
>
>

Reply via email to