How to retrieve alpha channel data in format plugin

I want to ask how to get the alpha channel 's data that describle the document's transparent info, in a format plugin.
for example , when open a PNG file in Photoshop, the photoshop set FormatRecord:: planes to 3 (not 4),
in this case i can only request the RGB data.
then how can i get if the pixel is transparent in document ?  (that is 0 - completely transparent, 255 - completely opaque)
Thanks~

i have resolved this problem, it's maybe i didnot set the fmtCanWriteTransparency flag in the pipl.
thanks.

Similar Messages

  • How to set alpha channel names in a format plugin?

    I am writing a format plugin with 6 color planes for CMYK mode. I want to set the apha channel names for planes 5 and 6 to "White" and "Clear" instead of "Alpha 1" and "Alpha 2" when I read the color data from my file. How do I set the alpha channel names?
    Thanks!

    I am still trying to find a solution to this.  The propChannelName is read only and the documentInfo structure is NULL when reading.  Any suggestions?

  • Alpha channel data with layered format plugin

    I have a layered format plugin and I am trying to write the alpha channel information separately. I have set up channelPortProcs and I am attempting to read the pixel data with readPixelsProc. The issue is that even though the readPixelsProc function doesn't return any errors the rectangle that is supposed to store the rectangle that was actually read is a 0x0 rectangle. I can't seem to find why this would be or what I might be doing wrong. Here's what I have so far:
    // set up the pixel buffer
    int32 bufferSize = imSize.h*imSize.v;
    Ptr pixelData = sPSBuffer->New( &bufferSize, bufferSize );
    if (pixelData == NULL)
         *gResult = memFullErr;
         return;
    // Define the source and destination rectangles
    ReadChannelDesc *alphaChannel = gFormatRecord->documentInfo->alphaChannels;
    PIChannelPort port = alphaChannel->port;
    PSScaling scale;
    scale.sourceRect = scale.destinationRect = alphaChannel->bounds;
    VRect destRect = scale.sourceRect;
    // Set up the descriptor for reading pixel data
    VRect wroteRect = {0};
    PixelMemoryDesc dest = {0};
    dest.rowBits = imSize.h*alphaChannel->depth;
    dest.colBits = alphaChannel->depth;
    dest.depth = alphaChannel->depth;
    dest.data = pixelData;
    // Put the pixel data into the buffer
    *gResult = gFormatRecord->channelPortProcs->readPixelsProc(port,&scale, &destRect, &dest, &wroteRect);
    if(*gResult != noErr)
         return;
    The alpha channel gives me the proper name, but I just can't get the data associated with it. Thanks.

    I am still trying to find a solution to this.  The propChannelName is read only and the documentInfo structure is NULL when reading.  Any suggestions?

  • How to retrieve the Application Data from the Time Machine Backup, into newly Installed OS X Lion

    Hi!
    I recently intalled a clean Mac OS X Lion on my system, I was having Snow Leopard (10.6.8) before. So before the format of the hard drive I have taken the full backup of the system by Time Machine.
    Now, after the fresh installation of Lion, I want to retrieve the data of diffrent previously installed applications like iPhoto, Address Book or iCal and so.. but certainly I want to retrieve the data only, not the full application (since they are the older versions of the application). How I can have the data of these applications into the new OS X Lion's blank Applications..!?
    Please give some solution.
    Thank you very much.

    Lion hides your home library
    there are 3rd party programs to help. having a CLONE of your old system often trumps what TM alone offers.
    And it makes sense to start a new TM backup set on another drive and keep the old one intact.
    Lion Community and TM section might be worth a visit.
    http://www.apple.com/support/timemachine
    There are also some tech articles on Lion's Migration Assistant

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi,
    we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
    . once data is shown on excel , user modifies it and update/save the record back to sharepoint.
    can you please give some samples and suggest any links to start with development.
    Thanks
    chaitu

    Hi chaituatp,
    For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
    How to: Retrieve List Items using JavaScript:
    http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
    VSTO application show data in datagridview:
    http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Alpha channel in HTML5 format

    Hi all,
    I use Captivate 7 Subscription Edition on Windows Home Premium 64bit , and
    I have a problem with alpha channel and html5.
    I often make projects importing videos with alpha channel   (transparent background).
    When I decide to publish my   projects in Flash (SWF) all works smoothly without problems, but when I check the HTML format the alpha channel doesn't work anymore. In fact in the publishing process Captivate opens the Media Encoder to transform the videos from FLV to   H.264 (.MP4) format. When I go to see the SCORM in HTML5 the videos doesn't have anymore alpha channel and other times they neither don't show anything, just audio works...
    I read on internet that the H.264 format doesn't support   alpha channel but I can't find any other solution to make it work in a captivate SCORM 1.2 in HTML5 format.
    Can someone give me a workaround or a solution??
    I need the HTML5 format to make our company projects work on   mobile devices (such as Ipad, Iphone, Android, etc).
    Roberto.
    P.S. I found this jquery library:  https://code.google.com/p/jquery-seethru/ the problem is that I can't make it work with the SCORM and   don't know if it really can work...

    You've found the answer - h.264 doesn't support alpha channels (which I find a bit silly).
    So the only real option you then have is .FLV...but if you need to deliver to mobile, then FLV won't work...
    So then seems like your only option is to layer in the background within the video, export that as .MP4/h.264, then bring that in to the CP project and match it up as best you can with the rest of the background.
    -E

  • How to save multi channel data in a same file?

    hi... i'm a fresh guy of labVIEW programming... what i wish to know is how to save multi channel in a same file? i had try with the AI acquire waveform, but it still can't get what i need. Because AI acquire waveform need user key in those channel with ","... but ehat i want is user can choose the channel from a combo box and then once user click a 'add' button then the value will store in memory, after user click done then the value can send to AI acquire waveform together...
    i had tried hard about this but still can't get what i want.... -_-|
    hope anyone can reply as soon as possible...

    HI, Brett B... thanks for your reply
    I'm using labVIEW 7.1 Express... i know the "Write LabVIEW Measurement File.vi" too, but it cannot support the file tpe that i need... so i just can find other way to do that...
    the file type that i need is call *.log\*.DAT... so... there got any solution to do that? or i can modified the "Write LabVIEW Measurement File.vi"?
    Jaxx

  • How copy an alpha channel mask to an adjustment layer?

    I can copy an alpha channel mask to an image layer by Ctrl+Clicking the alpha channel then clicking the Add Layer Mask icon in Photoshop CC but this does not work for an adjustment layer. How can I copy the mask from an alpha channel to the layer mask for an adjustment layer? Thanks.

    I am using Photoshop CC as I stated in my question. All updates have been installed.
    I am running on Win 7 Pro 64 bit with all updates installed.
    I am editing a photograph.
    I have an alpha channel with a grey scale mask.
    If I Ctrl+Click the alpha channel then click the Add Layer Mask button to add a layer mask to an image layer the alpha channel mask is added to the image layer.
    If I delete the layer mask from an adjustment layer and follow the same steps a solid white mas is added to the adjustment layer.
    Several others in the camera club I belong to have tried this with the same result so the problem is not unique to my system.
    Hope this helps.

  • HOW to retrieve PURCHASE ORDER DATA from archieve file and print a report

    Dear all
    1) I have retrieve purchase order data from archived files.
    2)  print purchase order data and created pdf file.
    VIJ.............
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Apr 28, 2009 12:00 PM

    Dear all
    1) I have retrieve purchase order data from archived files.
    2)  print purchase order data and created pdf file.
    VIJ.............
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Apr 28, 2009 12:00 PM

  • How to retrieve Request Form Data in OIM 11g for SOA workflows

    Hi,
    I have a business requirement wherein, I need to retrieve a field's value inside my SOA composite for further processing and decide on the Approver of the Request. Say for e.g. I'm having a field *"Country"* inside my Request Form, and what i need to do is, as soon as the request form is submitted, I need to retrieve the value for *"Country"* attribute inside my SOA Composite using Payload, and further process it. This scenerio is with respect to provision an application instance to a user.
    Now, in a similar scenario, where I was trying to create a user of type *"Contractor"*, I had used Request Service Api to retrieve the Basic information of the userform submitted, and decide on approval. Fortunately, the basic data like, First Name, Last Name, Login etc was successfully being fetched from the Request and I was able to perform further operations.
    Unfortunately, the same code which was working for Creation of a User, is not working when I'm trying to provision an application instance to the user.
    Below is the code which worked fine for me to retrieve basic request data for user creation, and isn't working for provisioning application instance:
    RequestService reqSvc = (RequestService)oimClient.getService(RequestService.class);
    String reqId = ((oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable", "payload", "/ns3:process/ns4:RequestID")).getText();
    System.out.println("request ID: " reqId);+
    Request req = reqSvc.getBasicRequestData(reqId);
    List <RequestEntity> targetEntities = req.getTargetEntities();
    System.out.println("targetEntities : " targetEntities);+
    System.out.println("------------");
    for (RequestEntity rea : targetEntities)
    +{+
    List <RequestEntityAttribute> attributes = rea.getEntityData();
    for( oracle.iam.request.vo.RequestEntityAttribute attribute : attributes)
    +{+  
    System.out.println("Attribute.getName() : " attribute.getName().toString());+
         if(attribute.getName().equals("User Manager"))
         +{+
    beneficiaryManagerKey = attribute.getValue().toString();
         System.out.println("User Manager : " beneficiaryManagerKey);+
    +}+
         e+lse if(attribute.getName().equals("User Login"))+
         +{+
    userid = attribute.getValue().toString();
         System.out.println("User Login  : " userid);+
    +}+
    +}+
    +}+
    Any pointers to this would be of a great help.
    Regards

    List <RequestEntity> targetEntities = req.getTargetEntities();
    System.out.println("targetEntities : " + targetEntities);
    System.out.println("------------");
    The above piece of code retrieves the attributes and their values from the request form while creating a user, but not from the request form, which provisioning a resource to a user.
    Regards,

  • How can the alpha channel be removed in an image with the command sips?

    I solved it by converting the image to jpeg with best quality, but it's a less than optimal solution.
    Is there a better way?
    I want to know because I'm developing a bash script to manipulate images.
    Thank you.

    I'm developing a Bash script to automate PNG compression.
    Converting true color images is often a good idea to reduce file size dramatically but transparency doesn't look any good then. So removing the alpha channel is usually the thing to do.
    I think Apple's platform is very easy to use but as soon as I dig deeper into the system it often becomes frustrating. Why isn't there a simple way to do something so simple and basic as removing alpha channels from images from the command line? Sips should be the answer but doesn't seem to be, unless I've missed something, but the manual doesn't give any clue.

  • How to create Alpha Channel automatically?

    I have a folder containing about 100 TIFF files, each containing an intricate shape against a transparent background.
    I need to create an Alpha Channel in each one which replicates the transparent background.
    Is there a way to do this "automatically" with Photoshop 7.0.1 (the only version I have access to) under MacOS X 10.4.11?

    Record into an action and batch: select layer transparency, save selection as alpha channel. Watch your matting though, as it sounds like these files will be flattened and any feathering in the alpha channel will leads to a fringe of [white? black?]. You could tuck in the alpha channel mask a bit before you save. It depends on the final usage...

  • How to display alpha channel of layer mask in layers palette ??

    Help me out here folks....
    Using CS5--in the past, when I added a layer mask to a layer, it would display in the palette as the alpha channel, which was very handy. Now, when I add a layer mask, it only appears as the mask icon; i.e., gray square with white circle in the middle. I have no clue what I did to change from the one to the other, but I would certainly like to get the alpha representation back!
    TIA,
    Toby

    Could you please post a screenshot with the pertinent Panels visible?
    Could you be mixing up Layer Masks and Vector Masks?

  • How to retrieve PO release date?

    Hi All,
    anyone knows in what table i could retrieve the release date of a PO?
    i've checked table EKKO, but couldn't find it. i think we can get it from PO changes history, but i couldn't find in what table it's stored.
    many thanks for your help,
    nasikhin

    solved by looking up table CDHDR and CDPOS.
    thanks

Maybe you are looking for

  • My desktop website shortcuts stopped working.

    Desktop website shortcuts all say: "There was a problem sending the command to the program". How can I fix these shortcuts? Running Windows 7 and Firefox 4.0.1

  • Oracle 10gR2 (10.1.2.0.0)

    is there any way to install 10gR2 (10.1.2.0.0) on unbreakable Linux ? i had install 10.1.2.0.2 on unbreakable but it's not possible installation 10.1.2.0.0 ! ! !

  • Purchase order terms and conditions in french

    Hi, i want purchase order terms and conditions in print preview to appear in french.I added that graphic and added conditions also.I maintained material and vendor in french language still it is not displaying terms and conditions in french.How tomak

  • Premiere Pro CC Crashing At The Splash Screen - OSX Mavericks

    Hello, I'm having difficulty using Premiere Pro CC as it won't allow me to get past the splash screen. I've just updated to OSX Mavericks and apparently Premiere is compatible with Mavericks. However it appears to be crashing at every instance that I

  • [solved] Upgrade failing for a package called device-mapper

    Hi All, I am using archlinux in a VirtualBox to get used to it. Now, I tried to upgrade (after a month or so) with following command pacman -Syu I get following errors error: failed to commit transaction (invalid or corrupted package) device-mapper-1