Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Rasterizar SWF
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 7, 10:00 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 7 Feb 2012 13:00:03 -0200
Local: Tues, Feb 7 2012 10:00 am
Subject: Rasterizar SWF

Galera,

eu tou usando um componente que só trabalha com BITMAP, mas todos os meus
arquivos são SWF.

Como eu faço essa conversão ? E como eu seto o Tamanho e Largura do Bitmap

Valeu galera

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 7, 10:06 am
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 7 Feb 2012 13:06:48 -0200
Local: Tues, Feb 7 2012 10:06 am
Subject: Re: [flexdev] Rasterizar SWF

Você pode carregar o swf em um componente ( Image ou SWFLoader ), e tirar
um "print" dele. Algo mais ou menos assim:

var bd:BitmapData = new BitmapData(loader.width,loader.height); //loader é

> onde você carregou o swf.
> bd.draw(loader);
> var screenshot:Bitmap = new Bitmap(bd);

Más lembre de fazer isso somente depois do loader exibir o swf.

Abraços

--
 @Tonussi
tonussi.com <http://tonussi.com/>

Em 7 de fevereiro de 2012 13:00, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 7, 10:10 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 7 Feb 2012 13:10:13 -0200
Local: Tues, Feb 7 2012 10:10 am
Subject: Re: [flexdev] Rasterizar SWF

2012/2/7 Tonussi Eric <erictonu...@gmail.com>

> Você pode carregar o swf em um componente ( Image ou SWFLoader ), e tirar
> um "print" dele. Algo mais ou menos assim:

> var bd:BitmapData = new BitmapData(loader.width,loader.height); //loader é
>> onde você carregou o swf.
>> bd.draw(loader);
>> var screenshot:Bitmap = new Bitmap(bd);

> Más lembre de fazer isso somente depois do loader exibir o swf.

Então eu tenho que exibir o SWF na tela para poder transformar ele em
Bitmap?

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 7, 10:43 am
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 7 Feb 2012 13:43:44 -0200
Local: Tues, Feb 7 2012 10:43 am
Subject: Re: [flexdev] Rasterizar SWF

Não, só precisa ter certeza que ele já está "pronto"

--
@Tonussi
tonussi.com <http://tonussi.com/>

Em 7 de fevereiro de 2012 13:10, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 7, 11:53 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 7 Feb 2012 14:53:29 -0200
Local: Tues, Feb 7 2012 11:53 am
Subject: Re: [flexdev] Rasterizar SWF

Brigadão, chefe

2012/2/7 Tonussi Eric <erictonu...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 13, 8:37 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Mon, 13 Feb 2012 11:37:15 -0200
Local: Mon, Feb 13 2012 8:37 am
Subject: Re: [flexdev] Rasterizar SWF

Bicho,

como é que eu faço um resize no AVM1Movie antes de rasterizar?

Só posso fazer isso usando o efeito
'mx.effects.*Resize*<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx...>'
?

valeu

2012/2/7 Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 13, 10:54 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Mon, 13 Feb 2012 13:54:42 -0200
Local: Mon, Feb 13 2012 10:54 am
Subject: Re: [flexdev] Rasterizar SWF

Achei a solução

http://stackoverflow.com/questions/964495/what-is-the-best-way-to-res...

2012/2/13 Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 13, 7:54 pm
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Mon, 13 Feb 2012 22:54:22 -0200
Local: Mon, Feb 13 2012 7:54 pm
Subject: Re: [flexdev] Rasterizar SWF

Galera, eu tive uma falsa impressão que isso funcionou.
Ele redimensionou o Bitmap, o que não serve de nada.

Alguém tem a luz de como redimensionar o AVM1Movie ?

Tou usando Flex 3.6

2012/2/13 Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 14, 7:07 am
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 14 Feb 2012 10:07:54 -0200
Local: Tues, Feb 14 2012 7:07 am
Subject: Re: [flexdev] Rasterizar SWF

O que acontece qunado você seta o width e height?

--
@Tonussi
tonussi.com <http://tonussi.com/>

Em 13 de fevereiro de 2012 22:54, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 14, 9:27 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 14 Feb 2012 12:27:53 -0200
Local: Tues, Feb 14 2012 9:27 am
Subject: Re: [flexdev] Rasterizar SWF

Suponha que eu tenho um  AVM1Movie, que eu vou chamar de movie, com tamanho
100x100.

Se eu duplicar a imagem :
movie.width  *= 2;
movie. height *= 2;

Eu terei um movie com 200x220. Correto?

Logo meu BitmapData (bd) terá tamanho 200x200.

Quando eu fizer o draw, eu terei um Bitmap 200x200.

Podemos dividir essa imagem em 4 pedaços 100x100 e ficaria assim:
_________________
|              |              |
|      1      |      2      |
|              |              |
|--------------|--------------|
|              |              |
|       3     |      4      |
|              |              |
------------------------------

A movie aparece somente no quadrante 1. O resto fica em branco. Logo o
movie não foi redimensionada. Ou seja, somente mudou o width e height.

Pior que no momento que acontece isso, eu não tenho nem um stage pra
colocar o movie e vê se ele redimensiona na tora.

[ ]s

2012/2/14 Tonussi Eric <erictonu...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 14, 10:29 am
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 14 Feb 2012 13:29:18 -0200
Local: Tues, Feb 14 2012 10:29 am
Subject: Re: [flexdev] Rasterizar SWF

Entendi. Tente o seguinte:

movie.scaleX *= 2;

> movie.scaleY *= 2;

Agora, me responde uma coisa: porque você está usando o AVM1Movie? Tente
usar o Image ou SWFLoader, que acredito funcionarão melhor.

Abraços

--
@Tonussi
tonussi.com <http://tonussi.com/>

Em 14 de fevereiro de 2012 12:27, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 14, 11:02 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 14 Feb 2012 14:02:49 -0200
Local: Tues, Feb 14 2012 11:02 am
Subject: Re: [flexdev] Rasterizar SWF

Esqueci de listar no email. Já tinha tentado isso tb.

Eu tou usando um AVM1Movie, porque a biblioteca que eu tou usando já tem um
sistema de cache. Ele baixa ele usa um Loader, aí eu só tenho acesso ao
content.

O outro componente que eu tou usando, eu preciso entregar um Bitmap pra ele.

Por isso que eu tou sendo obrigado a converter de ' AVM1Movie ' para '
Bitmap '.

Eu tou começando a achar que o movie não está redimensionando por causa de
algum bug/limitação.

[ ]s

2012/2/14 Tonussi Eric <erictonu...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 14, 11:08 am
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 14 Feb 2012 14:08:50 -0200
Local: Tues, Feb 14 2012 11:08 am
Subject: Re: [flexdev] Rasterizar SWF

Tentou usar o scaleX e scaleY?

--
@Tonussi
tonussi.com <http://tonussi.com/>

Em 14 de fevereiro de 2012 14:02, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 14, 11:54 am
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 14 Feb 2012 14:54:50 -0200
Local: Tues, Feb 14 2012 11:54 am
Subject: Re: [flexdev] Rasterizar SWF

Tentei e ocorreu o mesmo problema.

2012/2/14 Tonussi Eric <erictonu...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tonussi Eric  
View profile   Translate to Translated (View Original)
 More options Feb 14, 12:27 pm
From: Tonussi Eric <erictonu...@gmail.com>
Date: Tue, 14 Feb 2012 15:27:35 -0200
Local: Tues, Feb 14 2012 12:27 pm
Subject: Re: [flexdev] Rasterizar SWF

Tente adicionar ele na tela para ver como fica. Você talvez esteja fazendo
o "print" antes de resize.

--
@Tonussi
tonussi.com <http://tonussi.com/>

Em 14 de fevereiro de 2012 14:54, Robson Roberto Souza Peixoto <
robsonpeix...@gmail.com> escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Roberto Souza Peixoto  
View profile   Translate to Translated (View Original)
 More options Feb 14, 12:36 pm
From: Robson Roberto Souza Peixoto <robsonpeix...@gmail.com>
Date: Tue, 14 Feb 2012 15:36:49 -0200
Local: Tues, Feb 14 2012 12:36 pm
Subject: Re: [flexdev] Rasterizar SWF

O problema é que eu não tenho acesso ao stage no momento que tenho acesso a
classe.

2012/2/14 Tonussi Eric <erictonu...@gmail.com>

--
Robson Roberto Souza Peixoto
Robinho
Master in Computer Science, University of Campinas
Linux Counter #395633
IRC: robsonpeixoto
Twitter: http://twitter.com/rrspba
github: https://github.com/robsonpeixoto

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »