Reply to Re: php ming size problem

Your name:

Reply:


Posted by gosha bine on 05/16/07 16:00

On 16.05.2007 17:35 CptDondo wrote:
> gosha bine wrote:
>> On 16.05.2007 00:06 CptDondo wrote:
>>> I'm working with ming. I am generating a very tiny movie; about 72
>>> frames at a 120x120 pixel resolution.
>>>
>>> I am setting the dimension to 2400, 2400:
>>>
>>> $m->setDimension(2400,2400);
>>>
>>> but the player reports the movie to be 48000, 48000.
>>>
>>> Obviously this presents a problem on playback - is there something I
>>> am missing?
>>>
>>> Should I be setting a max and min frame size or something?
>>>
>>> --Yan
>>
>> Are you using ming_setScale?
>>
>
> No; should I be? The PHP ming docs say:
>
>> Warning
>>
>> This function is currently not documented; only the argument list is
>> available.
>
> Not much help there. :-(
>
> --Yan

ming_setscale tells how many twips per pixel we want. Default is 20, and
from your post it looked like it's changed somewhere. What does the
following print for you?

ming_setscale(20);
ming_useswfversion(7);
$m=new SWFMovie();
$m->setDimension(123,456);
$m->add(new SWFShape());
$m->save('tmp.swf');
print_r(getimagesize('tmp.swf'));




--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация