Printing a graphic with a gradient mask in Flex 3-problem

Hello, I am fairly new to flex development. I am puting together a little program that allows the user to upload a picture add a vignette mask in order to achieve a soft edge,  and have a problem I cannot  find an answer anywhere, maybe someone could help me please.
I want  to print a the user photo with a gradient mask or vignette from flex. I managed  to show the image correctly on screeen with the gradient mask using  this class but the output to paper is a rectangle without the soft mask.
//package to add the mask for display
package com.dm.graphics
   import flash.display.Graphics;
   import mx.containers.Canvas;
   import flash.display.GradientType;
   public class FrameBorderSoft extends Canvas
      override protected function updateDisplayList(w:Number, h:Number):void
         super.updateDisplayList(w,h);
         var g:Graphics = this.graphics;
         g.clear();
         g.beginGradientFill(GradientType.RADIAL, [0x000000, 0x000000, 0x000000, 0x000000],
         [1,1,0.8,0],
         [1,128,195,255],
         horizontalGradientMatrix(0,0,w,h) );
         g.drawRect(0,0,w,h);
         g.endFill();
It  works beautifully until I try to print the graphic. The image prints  but without the gradient edges (soft) instead it is just a sharp edge  rectangle.
Does anyone know how to do this?
Here is my print function:
private function doPrint():void {
                // Create an instance of the FlexPrintJob class.
                var myPrintJob:FlexPrintJob = new FlexPrintJob();
                // Start the print job.
                if (myPrintJob.start() != true) return;
                // Add the object to print. Do not scale it.
                if (tabnavigator1.selectedChild == img1) {
           //switchcolor is a variable to detect if the user changed the background to white or clear.       
                         switchcolor = 100;
                      //printCF is the card front container with the photo masked
                   myPrintJob.addObject(printCF, FlexPrintJobScaleType.NONE);
                   myPrintJob.printAsBitmap = false;        
                } else if (tabnavigator1.selectedChild == img1b) {
                   switchcolor = 100;
                   myPrintJob.addObject(printCB, FlexPrintJobScaleType.NONE);
I hope this helps to visualize,
I would greatly appreciate any assistance or advise.

Hello, back on my issue, i tested a little bit more the message dispaching.
I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
So i added copy of my module:
     <cairngorm:ParsleyModuleDescriptor objectId="test"
          url="TestModule.swf"
          applicationDomain="{ClassInfo.currentDomain}"
     />
     <cairngorm:ParsleyModuleDescriptor objectId="testbis"
          url="TestModuleBis.swf"
          applicationDomain="{ClassInfo.currentDomain}"
     />     
Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
I compiled with
-keep-as3-metadata+=ModuleId
but this hasn't changed anything...

Similar Messages

  • Why my gradient mask at home renders smooth, but is clipped at work?

    I created a number of gradient masks applied to images with a basic 100 to 0 black gradient, on my Mac at home. They look smooth in Illustrator, and rendered smooth both as a PDF and exported to a PNG.
    Gradient Mask from my Mac at home:
    But when I open the same illustrator document on my Mac at work the gradation of the mask is clipping. So instead of a smooth transition there's now a hard line.
    Gradient Mask on my Mac at work:
    This is the same file, opened on different Macs. Both identical versions of Illustrator CS6, identical color settings, identical color profiles.
    The main differences are my Mac at home is a 2009 MacPro running OS 10.9, and my Mac at work is a 2008 MacPro running OS 10.8.
    I've created and recreated gradient masks over and over again, and I cannot get a smooth transparency gradient mask at all on my Mac at work.
    This presented a problem, as the client had to have last minute revisions when I was at work, and could not produce a smooth image, I was forced to deliver the final graphic with clipped gradient masks.

    So deleting preferences didn't fix it. I even rasterized the gradient to see if an image mask would work better, that didn't work. Then I toggled "invert mask." I was suprised to see that once I inverted the mask (which reversed the gradient), the transparency was smooth from 0 to 100.
    So I've figured out a work around for the problem, but it's still not resolved.
    Invert gradient mask
    Rotate gradient mask 180°
    Adjust gradient mask break points to accomidate reversal
    Here's the result:
    Now if someone can explain to me why a gradient mask doesn't work in one direction, but it does when it's inverted.

  • Printing PDF files with smb/cups not possible // SLPReg status -20!

    Hello *,
    i am running SAMBA 3.6.1-1 and CUPS 1.5.0-1 on a dedicated system. Printer: Canon Pixma IP4500 (USB).
    The problem is that all Windows 7 clients are not able to print PDF files (since few months) on that printer while printing these files with Linux software is no problem. The PDF files are neither encrypted nor forbidden to print.
    I tried to print with Adobe Acrobat Reader X (latest) and Foxit Reader. Both are preparing the pages to be printed and close their printing dialog after processing. Windows printing queue does not show any jobs (which it even does not when printing simple images with MS Paint, which is not a problem).
    Windows systems are using the Canon Inkjet 4500 and Canon iP 4500 driver (manually installed). Printing images works with both drivers.
    I searched for "SLPReg […] failed with status -20!" but found no helpful information.
    /var/log/cups/error_log
    D [24/Dec/2011:23:05:35 +0100] Report: clients=0
    D [24/Dec/2011:23:05:35 +0100] Report: jobs=499
    D [24/Dec/2011:23:05:35 +0100] Report: jobs-active=0
    D [24/Dec/2011:23:05:35 +0100] Report: printers=2
    D [24/Dec/2011:23:05:35 +0100] Report: printers-implicit=0
    D [24/Dec/2011:23:05:35 +0100] Report: stringpool-string-count=199735
    D [24/Dec/2011:23:05:35 +0100] Report: stringpool-alloc-bytes=14344
    D [24/Dec/2011:23:05:35 +0100] Report: stringpool-total-bytes=3718136
    D [24/Dec/2011:23:05:36 +0100] cupsdNetIFUpdate: "lo" = localhost:631
    D [24/Dec/2011:23:05:36 +0100] cupsdNetIFUpdate: "eth0" = 192.168.2.9:631
    D [24/Dec/2011:23:05:36 +0100] cupsdNetIFUpdate: "lo" = localhost:631
    D [24/Dec/2011:23:05:36 +0100] cupsdNetIFUpdate: "eth0" = [v1.fe80::1e6f:65ff:fe51:1b3+eth0]:631
    D [24/Dec/2011:23:05:36 +0100] send_slp_browse(0x7f7d52023050 = "IP4500")
    E [24/Dec/2011:23:05:36 +0100] SLPReg of "IP4500" failed with status -20!
    D [24/Dec/2011:23:05:48 +0100] send_slp_browse(0x7f7d52017c90 = "IP4500_Duplex")
    E [24/Dec/2011:23:05:48 +0100] SLPReg of "IP4500_Duplex" failed with status -20!
    D [24/Dec/2011:23:06:07 +0100] send_slp_browse(0x7f7d52023050 = "IP4500")
    E [24/Dec/2011:23:06:07 +0100] SLPReg of "IP4500" failed with status -20!
    D [24/Dec/2011:23:06:19 +0100] send_slp_browse(0x7f7d52017c90 = "IP4500_Duplex")
    E [24/Dec/2011:23:06:19 +0100] SLPReg of "IP4500_Duplex" failed with status -20!
    D [24/Dec/2011:23:06:35 +0100] Report: clients=0
    D [24/Dec/2011:23:06:35 +0100] Report: jobs=499
    D [24/Dec/2011:23:06:35 +0100] Report: jobs-active=0
    D [24/Dec/2011:23:06:35 +0100] Report: printers=2
    D [24/Dec/2011:23:06:35 +0100] Report: printers-implicit=0
    D [24/Dec/2011:23:06:35 +0100] Report: stringpool-string-count=199735
    D [24/Dec/2011:23:06:35 +0100] Report: stringpool-alloc-bytes=14344
    D [24/Dec/2011:23:06:35 +0100] Report: stringpool-total-bytes=3718136
    D [24/Dec/2011:23:06:38 +0100] cupsdNetIFUpdate: "lo" = localhost:631
    D [24/Dec/2011:23:06:38 +0100] cupsdNetIFUpdate: "eth0" = 192.168.2.9:631
    D [24/Dec/2011:23:06:38 +0100] cupsdNetIFUpdate: "lo" = localhost:631
    D [24/Dec/2011:23:06:38 +0100] cupsdNetIFUpdate: "eth0" = [v1.fe80::1e6f:65ff:fe51:1b3+eth0]:631
    D [24/Dec/2011:23:06:38 +0100] send_slp_browse(0x7f7d52023050 = "IP4500")
    E [24/Dec/2011:23:06:38 +0100] SLPReg of "IP4500" failed with status -20!
    D [24/Dec/2011:23:06:50 +0100] send_slp_browse(0x7f7d52017c90 = "IP4500_Duplex")
    E [24/Dec/2011:23:06:50 +0100] SLPReg of "IP4500_Duplex" failed with status -20!
    /etc/samba/smb.conf
    load printers = yes
    printing = cups
    printcap = cups
    [printers]
    path = /var/spool/samba
    printable = yes
    public = yes
    writable = no
    /etc/cups/printers.conf
    # Printer configuration file for CUPS v1.5.0
    # Written by cupsd on 2011-12-24 22:25
    # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
    <Printer IP4500>
    UUID urn:uuid:f9850f70-d898-39ad-4e0a-9edfecf4977b
    Info Canon iP4500 series
    Location Keller
    MakeModel Canon PIXMA iP4500 - CUPS+Gutenprint v5.2.7
    DeviceURI usb://Canon/iP4500%20series?serial=42E635
    State Idle
    StateTime 1306084752
    Type 45084
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    DenyUser xy
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    <Printer IP4500_Duplex>
    UUID urn:uuid:14fcd3ca-2118-380e-5033-79beb09bb3b7
    Info Canon iP4500 series (Duplex)
    Location Keller
    MakeModel Canon PIXMA iP4500 - CUPS+Gutenprint v5.2.7
    DeviceURI usb://Canon/iP4500%20series?serial=42E635
    State Idle
    StateTime 1324761079
    Type 45084
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>

    Hi,
    I can, unfortanetly, confirm this problem for me with a Brother HL-2030 and an HP Officejet 5600 series.
    cups error log
    D [03/May/2012:21:42:46 +0200] Report: printers=3
    D [03/May/2012:21:42:46 +0200] Report: printers-implicit=0
    D [03/May/2012:21:42:46 +0200] Report: stringpool-string-count=10577
    D [03/May/2012:21:42:46 +0200] Report: stringpool-alloc-bytes=13088
    D [03/May/2012:21:42:46 +0200] Report: stringpool-total-bytes=192536
    D [03/May/2012:21:43:48 +0200] cupsdNetIFUpdate: "lo" = localhost:631
    D [03/May/2012:21:43:48 +0200] cupsdNetIFUpdate: "eth0" = 192.168.2.100:631
    D [03/May/2012:21:43:48 +0200] cupsdNetIFUpdate: "tun0" = 10.8.0.1:631
    D [03/May/2012:21:43:48 +0200] cupsdNetIFUpdate: "lo" = localhost:631
    D [03/May/2012:21:43:48 +0200] cupsdNetIFUpdate: "eth0" = [v1.fe80::201:2eff:fe27:6993+eth0]:631
    D [03/May/2012:21:43:48 +0200] Report: clients=0
    D [03/May/2012:21:43:48 +0200] Report: jobs=233
    D [03/May/2012:21:43:48 +0200] Report: jobs-active=0
    D [03/May/2012:21:43:48 +0200] Report: printers=3
    D [03/May/2012:21:43:48 +0200] Report: printers-implicit=0
    D [03/May/2012:21:43:48 +0200] Report: stringpool-string-count=10577
    D [03/May/2012:21:43:48 +0200] Report: stringpool-alloc-bytes=13088
    D [03/May/2012:21:43:48 +0200] Report: stringpool-total-bytes=192536
    D [03/May/2012:21:44:50 +0200] cupsdNetIFUpdate: "lo" = localhost:631
    D [03/May/2012:21:44:50 +0200] cupsdNetIFUpdate: "eth0" = 192.168.2.100:631
    D [03/May/2012:21:44:50 +0200] cupsdNetIFUpdate: "tun0" = 10.8.0.1:631
    D [03/May/2012:21:44:50 +0200] cupsdNetIFUpdate: "lo" = localhost:631
    D [03/May/2012:21:44:50 +0200] cupsdNetIFUpdate: "eth0" = [v1.fe80::201:2eff:fe27:6993+eth0]:631
    D [03/May/2012:21:44:50 +0200] Report: clients=0
    D [03/May/2012:21:44:50 +0200] Report: jobs=233
    D [03/May/2012:21:44:50 +0200] Report: jobs-active=0
    D [03/May/2012:21:44:50 +0200] Report: printers=3
    D [03/May/2012:21:44:50 +0200] Report: printers-implicit=0
    D [03/May/2012:21:44:50 +0200] Report: stringpool-string-count=10577
    D [03/May/2012:21:44:50 +0200] Report: stringpool-alloc-bytes=13088
    D [03/May/2012:21:44:50 +0200] Report: stringpool-total-bytes=192536
    printers.conf
    # Printer configuration file for CUPS v1.5.0
    # Written by cupsd on 2011-12-24 13:14
    # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
    <Printer CUPS-PDF>
    UUID urn:uuid:ad99f5dd-2577-355f-759c-6b2941a88d34
    Info Virtual PDF Printer
    Location Zion
    MakeModel Generic CUPS-PDF Printer
    DeviceURI cups-pdf:/
    State Idle
    StateTime 1309396700
    Type 8450124
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    <Printer HL2030>
    UUID urn:uuid:1b453a5d-ade0-3ddb-45e4-c5bcfe1feabd
    Info Brother HL-2030 series
    Location Zion
    MakeModel Brother HL-2030 Foomatic/hl1250 (recommended)
    DeviceURI usb://Brother/HL-2030%20series?serial=G6J274210
    State Idle
    StateTime 1324728260
    Type 8433668
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    <Printer HP5600>
    UUID urn:uuid:8d882659-3c7e-319f-5072-38d14683cfaf
    Info HP Officejet 5600
    Location
    MakeModel HP Officejet 5600 Series, hpcups 3.11.10
    DeviceURI hp:/usb/Officejet_5600_series?serial=CN838F31ZQ04B2
    State Idle
    StateTime 1324728896
    Type 8425484
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    smb.conf
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = yes
    # Set public = yes to allow user 'guest account' to print
    guest ok = yes
    writable = no
    printable = yes
    Did you find a solution in the meantime?

  • Need help with gradient mask over XML images

    I have a file that works great in pulling images via XML
    data. I want to create a gradient mask using flash CS3, but i can't
    seem to get any sort of mask (solid or gradient) to react with the
    XML driven images.
    Download my FLA
    and other working files
    845 kb

    granted i can see resizing the mask and now it responds...
    however, take a look at this
    Sample of alpha gradient mask:
    http://www.devx.com/webdev/Article/29296#codeitemarea
    i'm trying to this type of mask (static mask obviousl)

  • Drawing artifacts with motion under a gradient mask

    Hello,
    I am having an issue with using a motion under a gradient mask and was hoping someone might have a solution. I have a  transparent png bubble in movie clips that are being randomly sized and  animation started using code. The design has a reflection and I am  using a gradient mask for the effect. The issue is when the bubbles  animate they are causing drawing artifacts. Please see the attached  screen shot or you can see the swf here - http://archetypeworks.com/test/tm/. Below is the code I am using to set the mask. Any help or  suggestions are appreciated.
    Code:
    bottomMask.cacheAsBitmap = true;
    beaker_bottom.cacheAsBitmap = true;
    beaker_bottom.mask = bottomMask;
    Thank you,
    Ococ

    Thank you for the suggestion, but that did not work. I also tried breaking apart the png, using the magic wand to select and delete the transparent areas. Still getting the same issue.

  • How do I import an image with an opacity mask from AI into FW

    I have created a graphic in AI which contains several images with associated opacity masks. The mask use a radial gradient to achieve the desired effect. I am unable to import these images into FW with the mask effects intact even though the layers appear to be there. What am I doing wrong? I don't see away to do it in FW directly. If there's a work-around that would be appreciated too.

    Fireworks' masking is pretty good. If you have your object and your mask in FW, arrange the objects so that the mask is above the object, select both, then click on
    Modify > Mask > Group as Mask
    Where the mask is white, your object will be fully opaque. Where the mask is black or 100% transparent, your object will be fully transparent. Where the mask is grey or partially transparent, your object will be, as well, proportionally to the grey level/transparency level in the mask.
    Fireworks also has some built-in masks to fade objects radially or linearly. In CS3, these are under
    Commands > Creative > Fade Image
    but they got moved someplace else for CS4. I can't find the info on that in the help, though, sorry. Oh wait. It might be the Auto Vector Masks:
    http://help.adobe.com/en_US/Fireworks/10.0_Using/WS29D46793-C43E-4941-960E-F238FB1977C8.ht ml
    Mask info here:
    CS3: http://help.adobe.com/en_US/Fireworks/9.0/help.html?content=frw_layers_la_19.html
    CS4: http://help.adobe.com/en_US/Fireworks/10.0_Using/WS4c25cfbb1410b0021e63e3d1152b00d169-8000 .html

  • How to print the Graphical of WF template to a document?

    Hi All,
      I want to print the Graphical view of the WF template in a Document or a JPG file.
    There is a option to print the Graphics to File. It works fine for Smaller workflows. My workflow is too big with more than 50 - 60 steps.
    How can I do this?
    Thanks,
    Sivagami

    You have to use "Print to File: option only. Even if you have some direct option a single page in your document cannot occupy your whole workflow template.
    When i was preparing my technical documents i used the same option and then had cut the document into seperate viewable pages in MS paint and pasted in different pages.
    Alternatively you could also embedd your JPG as a embedded file in the document but the former method will give better clarity to the reader.
    Thanks,
    Prasath N

  • What printer will work with OS 8.6 and how to hook up to internet.

    I have a 10 year old Power Mac G4 (AGP Graphics) with OS 8.6 400mhz, 128 mb SDRAM. use Quark express graphic design software. I want to hook up a wireless card (I have an airport card slot in my G4) to go to internet. Second I would like to hook up a printer to this Mac G4,however all the new printer require OS X. Do you know of any printer that will work with this G4 as it is with OS 8.6. I do not have a parallel port. Only Serial and USB. Help

    I have a Canon i960 printer that I use with my G4 (USB connection) on both OS 9.2.2. & Tiger 10.4.11. I've had it since it was new & never had a clog, & I've printed thousands of color prints. It will also run on OS 8.6. Here's a review. http://www.steves-digicams.com/2003reviews/canoni960.html You can probably find a used one on eBay.
     Cheers, Tom

  • Browser won't print website graphics - only text

    Does anyone know how to print up web pages so that the graphics on that page will show up and not just the text? I have tried printing with both Firefox and Safari and both refuse to print the graphics. I have a new Epson Color Printer.
    Any advice, suggestions would be great.
    Thanks.
    Patrice

    Neither Firefox or Safari have a setting that stops the images on a site from being printed. Therefore there must be a setting with your printer driver that is causing the incorrect output.
    As a test, choose to print but from the print dialog, select PDF and save the file. If this PDF has the images, then you know its something to do with the Epson driver.
    PaHu
    Sorry BD. Looks like we replied at the same time. At least we had the same idea..
    Message was edited by: PAHU

  • I have a graphic with a hyperlink in an Outlook email. When I open on it on my iPhone I get the option to email, save, tweet, FB, etc. The text hyerlinks in the email open properly.  Can anyone help?

    I am sending an email from Outlook.  It has a graphic with a hyperlink and it has text with hyperlinks.  When I open the email on my iphone, the text hyperlinks open properly.  The graphic hyperlink gives the options to email, tweet, FB, print, copy, etc.  Can anyone help me correct this so that the graphic links opens in the website it's linked to?  Thank you.

    Try checking the hyperlink for the image in MS Outlook.
    Select image in signature, then click "Insert Hyperlink" image to the far right of Edit signature toolbar.
    Click "Target Frame" button.
    Select "New Window", then "OK".
    After doing this, it solved my problem.

  • How to create gradient mask in CS3 ?

    Is it possible to create gradient mask without programming?
    It is important
    that Flash document must be created in version 9 and AS3. I
    tried to use
    blend modes alpha/erase but they makes object invisible
    (cache as bitmap was
    on and off - every combination of 2 used objects).
    Flash document used for test cosist of 2 MCs:
    - top layer: contains MC with filled by gradient rectangle.
    First color is
    black with alpha 100%, second color is black with alpha 0%.
    - bottom layer: MC containing photo
    I want object on top layer to be a gradient mask.

    Is it possible to create gradient mask without programming?
    It is important
    that Flash document must be created in version 9 and AS3. I
    tried to use
    blend modes alpha/erase but they makes object invisible
    (cache as bitmap was
    on and off - every combination of 2 used objects).
    Flash document used for test cosist of 2 MCs:
    - top layer: contains MC with filled by gradient rectangle.
    First color is
    black with alpha 100%, second color is black with alpha 0%.
    - bottom layer: MC containing photo
    I want object on top layer to be a gradient mask.

  • Revolution Main Screen Gradient Mask

    I'm authoring a DVD in iDVD 7.1.2 (latest version with iLife '11).  I want to use the Revolution Theme with an image in the overall screen behind the chapter buttons.  Unfortunately for me, the theme has a black gradient mask over the screen and the image that I inserted is extremely dark.  Is there some way to edit the details of the Revolution Main screen?
    Thanks,
    Dave

    There's a menu title which is the rotating text.  Change it and the rotating text will change.
    OT

  • Large Print Job Size with Alpha Blending

    A while ago, I wrote some java code to print portions of a graph (from JGraph). In the original design, I painted directly to the Graphics object in the Printable.print method. However, the resulting print job size was around 50MBs per page (which is unacceptable when tens of pages are spooled). Nevertheless, the results were perfect. A second attempt to reduce the print size rendered the output to a BufferedImage before drawing to the Graphics object. The print jobs were now ~500KBs per page, but were pixelated. Because of time constraints we used the latter method.
    Recently, I revisited this problem and discovered the large print size is due to a color using alpha blending. Having transparent pieces is important, but I'd like to improve the print quality. Does anyone know how to "flatten" or otherwise reduce the print size?
    Thanks in advance.

    I've run into this same problem and I can't figure a way around it. I mocked up a simple class to test the difference in sizes of print jobs that are printing a display with translucent colors and those that don't and the difference seems a little extreme. Here's my code:
    import java.awt.*;
    import java.awt.print.*;
    public class SimpleTest implements Printable {
      public static void main(String[] args) {
        PrinterJob job = PrinterJob.getPrinterJob();
        job.setPrintable(new SimpleTest());
        if(job.printDialog()) {
          try {
            job.print();
          catch(Exception e) {
            e.printStackTrace();
      public int print(Graphics g, PageFormat pf, int pageIndex)
          throws PrinterException {
        if(pageIndex >= 10) {
          return Printable.NO_SUCH_PAGE;
        g.setColor(new Color(0f, 1f, 0f, 0.5f));
        g.drawRect(25, 25, 300, 300);
        return Printable.PAGE_EXISTS;
    }On the call to g.setColor, if I set the alpha argument to 1f, the print job size is 64 KB. However, if I set the alpha argument to 0.5f, the print job size bumps up to 239 MB. That's close to 3000x larger!
    So, is there a way around this? I tried changing the PrintQuality and PrinterResolution attributes but neither seemed to have any effect. Maybe I did something wrong? I used the following to change the PrintQuality:
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(PrintQuality.DRAFT);
    if(job.printDialog(aset)) {Is that the right way to do it? If so, what other options do I have?
    Thanks,
    David

  • Flash gradient mask problem

    Having a bad day everything i do doesn't work today... I am trying to create a gradient mask but because its not on the main timeline also its in a nested swf, just can't get it working, this is what I was using and tried it with _parent.(instanceName) and _root
    clip.cacheAsBitmap = true;
    mask.cacheAsBitmap = true;
    clip.setMask("mask");
    Any ideas
    Rich

    mask shouldn't be in quotes.
    if removing the quotes doesn't solve your problem what's the following show:
    clip.cacheAsBitmap = true;
    mask.cacheAsBitmap = true;
    clip.setMask(mask);
     trace(clip);
    trace(mask);

  • EPS Graphic with transparent bkgd placed over shape: IDCS3

    In Photoshop CS3 I created a graphic of a basketball player and masked him out. I then deleted the mask, leaving me with just the player. I now have a document that is 8x10", 300 dpi, with a transparent background. I flattened it and saved it as a Photoshop EPS.
    In InDesign CS3 I created a shape layer.
    I then created a graphics frame and placed my graphic with transparent bkgd in it.
    I arranged the layers so that my graphics layer is directly above my shape layer.
    Why isn't the background of the graphics layer transparent? It does not let the shape show through.
    I tried this technique:
    Object>Clipping Path>Options>Detect Edges = This is roughly what I want, but the edges are ragged.
    What is this technique called that I am trying to perform? I can't decide on the vocab. to use to navigate through the help menus or forum topics here.
    Thank you.

    ^ Just a quick note on #2 that transparency *effects* (as in 50% opacity) are not supported. However, simple background transparency should be.
    The Photoshop trip is probably your culprit as noted by OldBob, but whenever you work with EPS, you should also set your import options for EPS graphics to "Raster preview from postscript" (or whatever the "from postscript" option is called). Without that option, drop shadows will generate around the bounding box not the shape of the EPS object. Not sure whether the background will be correctly transparent either.

Maybe you are looking for

  • The ringer on my iphone 4S is not working.

    the ringer on my iphone 4S is not working. Phone not on silent mode, no red dot showing, tried turning on and off completely

  • Customer- credit Card Issue on Sales Order

    Hi Experts, There is an issue,where an incorrect Credit Card details are showing up during an order creation for a Customer. In XD02, the payment card details shows it as Master Card. But while creating order(VA01),it showing VISA card. Can anyone ex

  • Problem with OAException Warning Dialog

    We have developed a custon page for AME. The page has 3 tabs with each tab page having search option. The results of the search are displayed in an advanced table. We have provided Delete functionality also. The delete is working fine for 1st 10 reco

  • Problems printing on custom sized paper.

    Hello all, I am trying to iron out my problems with printing on custom sized tractor paper (using an impact printer). Every time I print a test page, the printer behaves as if it was loaded with tractor paper that is 11 inches long, rather then the 7

  • How get CUCM 9.1x software for initial installation

    Hi everyone ! My client has purchased R-CBE6K-K9 Cisco Business Edition 6000-Electronic SW Delivery-Top Level. So I went to cisco dowload software (http://software.cisco.com/download/release.html?mdfid=284510097&flowid=45900&softwareid=282074295&rele