Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All, I am using SwfDotNet library.I am not able to make out how to get the color of a shape. example: I have a simple swf file which contains a rectangle with color filled RED.Is there a way wherewe can get the color with which rect is filled with and can modify the same(changing one color to other).Plesea help me out with sample code since in SwfDotNet help file,there is no sample usage of any classes. Your help would be appreciated. Thanks, Soni
Posted

1 solution

I assume you are referring to the "How to create a simple SWF decompiler with the SwfDotNet library" article, which uses SwfDotNet. Looks like it has everything you need. Have you looked at DefineShape3Tag, or DefineMorphShapeTag, or the various other classes that define shapes and such? Have you looked at the properties and sub-properties to find the color? Looks like one of the many ways of representing color is SwfDotNet.IO.Tags.Types.ColorMapData.ColorTableRGB. I'd just find a simple SWF file and go through all the tags, and all the properties of those, and so on until you find the color data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900