Professional Web Applications Themes

ImageGlue.NET flash export alpha/transparency - ASP Components

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 ...

  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. #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

Similar Threads

  1. Alpha in Targa, not transparency
    By Ken Warren in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 6
    Last Post: November 27th, 06:48 AM
  2. images with alpha transparency flashing
    By tacbob in forum Macromedia Director 3D
    Replies: 2
    Last Post: March 20th, 07:20 PM
  3. Maintain alpha transparency. ^Help^
    By Green Edges webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 2
    Last Post: January 28th, 07:51 PM
  4. PNG export, stripes with alpha and anti-alias
    By jamesm25 webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 3
    Last Post: January 21st, 08:01 PM
  5. Export slices from FW to DW with transparency
    By mbomba webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 0
    Last Post: September 5th, 10:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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