ImageGlue.NET flash export alpha/transparency

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default ImageGlue.NET flash export alpha/transparency

    I am using ImageGlue .NET ([url]www.websupergoo.com[/url]) and have a question
    regarding saving an image in Macromedia Flash (SWF) format. If it is
    possible, how do I specify a transparent background color or an alpha
    channel when exporting to an SWF file? My application draws an EPS
    file onto a canvas and then saves the canvas as a SWF file.

    Here is the basic code I am using to try to save the SWF with an alpha
    channel:

    Dim objCanvas As New Canvas
    Dim objMask As New Canvas
    objCanvas.DrawFile("C:\source.eps", "Pos=0,0")
    objMask.DrawFile("C:\source.eps", "Pos=0,0")
    objMask.Invert()
    objCanvas.SetChannel("alpha", objMask.Image)
    objCanvas.SaveAs("C:\dest.swf", "quality=lossless Alpha=true")

    I tested using this same code to save as a PNG file with an alpha
    channel and the background was transparent as expected. Anyone know
    what I need to do to make the background transparent when saving as an
    SWF file?

    wizdave@gmail.com Guest

  2. Similar Questions and Discussions

    1. images with alpha transparency flashing
      I have got several different trees in a scene, all with alpha transparency. I have tried saving them as GIF and PNG but when one is viewed in line...
    2. Maintain alpha transparency. ^Help^
      Hello, thank you for taking the time to look into my challenge. I found this script to does everything I need except maintain the 32 bit alpha...
    3. PNG export, stripes with alpha and anti-alias
      Hi there, I'm using the Windows 11.0.1 Freehand MX trial version at the moment. Can somebody please tell me if the following is a bug, or am I...
    4. Export slices from FW to DW with transparency
      I am trying to export slices with swap image behaviour from Fireworks MX to Dreamweaver MX. I'm using a gif as a background image in DW. When I...
    5. Alpha in Targa, not transparency
      Running PS 7.0.1 on Win NT. I want to "key" names/titles over video through a Panasonic MX-70 switcher, which requires 32-bit Targa format w/ alpha...
  3. #2

    Default Re: ImageGlue.NET flash export alpha/transparency

    Did you manage to find a solution to this? I am experience similar issues when using gif files as my mask... All that is happening is the whole image is being whited out when the following snippet runs...

    src.Color = LicensePlateColour.HexStringToColor(strForegroundC olourHex);
    src.Erase();
    src.SetChannel("alpha", mask.Image);
    ---
    Posted via [url]www.DotNetSlackers.com[/url]
    ProudestMonkey Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139