comment convertir du texte en bitmap ou un mocieclip avec un arrière-plan transparent. Je peux convertir le texte en bitmap mais il a un fond blanc ..convertir le texte en bitmap ou movieclip avec fond transparent
Répondre
Vous devez vous assurer que l'objet BitmapData est initialisé avec une couleur transparente background-fill-color (le 4ème paramètre du constructeur). Cela devrait fonctionner (en supposant que vous avez votre texte dans un champ de texte):
var snapshot:BitmapData = new BitmapData(textField.width, textField.height, true, 0x00000000);
snapshot.draw(textField, new Matrix());
Voir aussi la as3 docs for the BitmapData constructor
cela semble utile, mais après cette étape, que ferais-je pour l'afficher à l'écran? merci d'avance-- –
Vous l'ajouteriez via un objet Bitmap à la liste d'affichage: 'var bmp: Bitmap = new Bitmap (bd); addChild (bmp); ' – meyertee
merci un paquet: D –
- 1. texte dessin avec le fond transparent
- 2. Texte transparent sur bitmap
- 3. Texte défilant avec fond transparent
- 4. Fond transparent, texte clair?
- 5. fond Convertir en RVB jpg soit transparent
- 6. fond bitmap android semi-transparent est noir
- 7. Survoler l'image au texte avec fond transparent
- 8. Bitmap transparent
- 9. texte d'entrée non transparent sur fond transparent
- 10. Texte PHP GD avec fond transparent/Alpha
- 11. AS3 - MovieClip de fond
- 12. UIViewAnimationTransitionCurlUp avec fond transparent
- 13. CSS Fond transparent avec le texte entièrement visible
- 14. convertir le pdf en transparent png
- 15. Flash Bitmap Vs MovieClip
- 16. Movieclip enregistre le bitmap aux coordonnées erronées
- 17. Rendre le texte transparent dans un fond coloré
- 18. Comment cvCopy avec fond transparent?
- 19. css fond transparent
- 20. montrant webview avec fond transparent
- 21. PHP/GD - fond transparent
- 22. fond fondu avec rideau transparent
- 23. C# fond transparent avec GTK #
- 24. Contrôle de dessin avec fond transparent
- 25. SDL RenderTextShaded Fond transparent
- 26. swf ou movieclip en FLV ou AVI?
- 27. Fond transparent - pas complètement transparent
- 28. AS3: Comment prendre un instantané d'un MovieClip avec un fond transparent?
- 29. Modifier l'image/couleur d'arrière-plan bitmap, ou le rendre transparent?
- 30. C# Couleur du fond transparent pour le texte riche
Comment vous convertissez texte bitmap? – taskinoor