Adobe Dreamweaver Forums



Last 10 THreads :         pop up blocker jacking my login (Last Post : reelhero - Replies : 6 - Views : 7 )           »          RoboHelp 7 Skins (Last Post : HelpDev - Replies : 7 - Views : 35 )           »          Code that can effect two movie clips (Last Post : Alessandroy - Replies : 0 - Views : 1 )           »          Clock .getUTC not working (Last Post : kglad - Replies : 3 - Views : 4 )           »          problems linking PDFs (Last Post : Alan - Replies : 1 - Views : 2 )           »          Changing RadioButton Label (Last Post : justintoflex - Replies : 2 - Views : 5 )           »          Table Borders MIssing in JavaHelp (Last Post : soxmann - Replies : 3 - Views : 8 )           »          cfimage error (Last Post : masoud_amen - Replies : 2 - Views : 3 )           »          Dragging components (Last Post : hsfrey - Replies : 2 - Views : 5 )           »          Is file too large? (Last Post : tweaked_eye - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-04-2008, 01:33 AM
baddcafe
 
Posts: n/a
Diggs:
Default capture background gradient with bitmapData.draw()

Hi all,
So I have been charged with creating icons on the fly for various components
of a RIA. The idea is that you can switch between views by selecting thumbnails
of the views. I don't want to capture the entire stage for the iconification as
that would include branding: mainly I just want to be able to pass in the
relevant view component and build an icon from that.
It's going pretty well: basically I just use bitmapData's draw method to
render a component into a byte buffer which can then be manipulated for various
thumbnailing needs. However, this only caputures the elements inside the
component. Stuff behind it, like the background gradient, doesn't show up. This
is a bit distracting so I would like to find a way around it. Any ideas about
how to capture the background gradient using the draw() method? I'm not even
sure how I would reference it as an object to pass in for the draw operation.
Any help is appreciated.
-Sam



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-04-2008, 02:32 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: capture background gradient with bitmapData.draw()


"baddcafe" <webforumsuser@macromedia.com> wrote in message
news:gh7bto$kd5$1@forums.macromedia.com...
> Hi all,
> So I have been charged with creating icons on the fly for various
> components
> of a RIA. The idea is that you can switch between views by selecting
> thumbnails
> of the views. I don't want to capture the entire stage for the
> iconification as
> that would include branding: mainly I just want to be able to pass in the
> relevant view component and build an icon from that.
> It's going pretty well: basically I just use bitmapData's draw method to
> render a component into a byte buffer which can then be manipulated for
> various
> thumbnailing needs. However, this only caputures the elements inside the
> component. Stuff behind it, like the background gradient, doesn't show up.
> This
> is a bit distracting so I would like to find a way around it. Any ideas
> about
> how to capture the background gradient using the draw() method? I'm not
> even
> sure how I would reference it as an object to pass in for the draw
> operation.
> Any help is appreciated.


Have you tried using ImageSnapshot?


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk