File format: transparency and color data separately reading

I have a problem of reading data through my plugin file format.

I can read the different layers in the format in color Lab (8-bit) mode.

There is a transparency mask of the layer (1 byte for each pixel), which is stored just before the image data in the file.

Currently, I have tried 2 approaches:

1.

-TransparencyPlane set of 3

-LoPlane set, hiPlane to 3

-ColBytes set 1

-Value rowBytes to the width of the image

-Set the data in a buffer with the size of the width of the image

-read the line of the transparency mask

-> advanceState gives error (-30500)

2.

-transparency mask read in its entirety (I know, bad idea)

-TransparencyPlane set of 3

-Set loPlane = 0, hiPlane = 3

-ColBytes set of 4

-The value rowBytes image width * 4

-Set the data in a buffer with the size of the image width * 4

-read line in a temp file. buffer

-copy of temp values. buffer and the transparency of each pixel in the data buffer

-> advanceState ok but not correct image ks in PS

I think there must be another, better way to apply the transparency mask.

Thank you for your help...

Problem solved.

I forgot to say PS the exact number of planes in the readStart selector.

Approach 1 was so good.

Tags: Photoshop

Similar Questions

  • Transparency and color

    Hello - I would like to mix colors in Flash using transparency to create something like this (no interactivity needed):

    If I create video clips of Cyan, Magenta and yellow and change Alpha transparency, obviously the entire color becomes lighter (and colors in layers merge well). Is there a simple way to do this, preferably use transparency, although I am prepared to accept that this is not possible. I tried to use masks, but I may be overloading the things and I am unable to get my head around what it takes. I found a movie showing it can be done.

    Any ideas?

    Hello, you can do this by using the mode of fusion in Flash 8. If you create video clips of 3 items then apply a mixture of multiply each, you will get what you are looking for. See my example here.

  • "When I import the xls file its start and finish dates to date of data change.

    I'm using Primavera p6 v7 autonomous, I export project in excel sheet and I put my activities with start and end dates it. When I import this sheet in primavera the start and finish dates change to date of data...

    Can someone guide me and suggest me what should I do to solve this problem...

    You insert the logic successor/predecessor for these activities. What, exactly, are these activities? If you want an activity at the start/finish on a specific date, you can always use a constraint.

  • I can't customize my window color and appearance to change the transparency and color of the window.

    Tuesday night I had to re-charge/reinstall Windows Vista because I had some problems with the worms and Trojans. After that I have re-installed Windows, I was able to customize my resolution and my window color and appearance. Once I installed all the 106 updates of Windows, I was finally able to change my resolution but I still not able to change my window color and appearance. Before I reloaded Windows I could change the transparency of the windows and taskbar and the tone of the colors, etc., but now all I can choose themes default and such of older versions of Windows. I was told that after I downloaded and installed all the updates, I'd be able to do, but I'm still not able to do. Is there a reason why and is there a any solution for this? Drivers? Material? Thank you. :) I hope this has been detailed enough.

    Hi Nicole,.

    In the services dialog box, double-click the themes service. On the Recovery tab, set the first and second failure of the drop-down lists "restart the service". If she is still unable to start/restart, open the event viewer for Windows Logs\System and locate the failure event. Post back with the information found here. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Transparency and color precision

    Hello

    I created a PNG with only 1 color: white, but with varying degrees of transparency.

    My idea is to cover this png on top of any solid color and create a brilliant UI, regardless of which is the background color.

    However, when I applied, I don't see that on 5 different shades of white, so theoretically it should be 255 different shades.  Needless to say, it looks terrible.

    Do you have suggestions on how to make this work better?  Could I manually draw the pixels using Graphics.drawARGB for best effect, or is this a limitation of the device Simulator or blackberry?

    If you have any suggestions on how to create the desired effect, I would greatly appreciate them.

    I'm sure that transparency is 8-bit (0-255), but the transparent color is mixed with the underlying color, and the result is 16-bit color. I'd do a few tests to determine the best combination of what you want. So do images of 32-bit normal and then save them as 16 bit images to see how to work the colors on the scale.

  • Need data files and rules file to create and load data for sample.basi

    I need emergency data files to build dimensions dynamically and also the rule files for loading data to the application Sample.Basic for Essbase 9. Kindly let me know if anyone can provide them. Otherwise any link frm where I can get it?

    Thanks in advance.

    Outline and all the data (calcdat.txt) are included in the zip, so you don't need to rebuild something with the loading rules

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Should what file format I use if they cannot read the H264?

    I pulled out my final AE animations with the Animation codec for editing.

    When I create a version of an animation for the customer to review, I use the H264 codec. It looks good, and the file size is reasonable.

    But what do I do if the client is unable to play videos with the H264 codec? It appears with older computers, even if they have Quicktime 7 or higher.

    (Note - the Mac I bought last August does Sorenson 3 on this subject.) I don't know how to get a return.)

    Best,

    Mike

    H.264 should play in QT7, so it's strange, but you could use MPEG4 to work around the problem - it is pretty universally accepted on Windows and Mac.

    If you open Quicktime Preferences there is an option to enable the codecs - that should bring back Sorenson 3.

  • File format Consortium and 3mf 3MF

    Can anyone give me some information on the consortium 3MF and how to participate.

    Have a look here:

    http://3mf.IO/

    https://msdn.Microsoft.com/en-us/Windows/hardware/bg183398?f=255&MSPPError=-2147217396

    http://blogs.Windows.com/bloggingwindows/2013/08/22/3D-printing-support-in-Windows-8-1-explained/

    https://github.com/3mfconsortium

    See you soon,.

    J

  • Best line drawing import in InDesign file format

    I was wondering what is the file format accepted and recommended for the files to import into InDesign. I was under the impression that the files I should be saved in EPS, but I just read an article that said that Adobe Dov Isaacs said that the eps will soon be obsolete. What I would do. I work on the curriculum that contains photos and line art and we use for the old tiff and eps for the latter. Most of our line is done in artificial intelligence. Howeverwe have a cartoonist who sends us files in jpg format. What would be the best format to file for him and for us as we draw in artificial intelligence?

    Article link: http://www.prepressure.com/library/file-formats/EPS

    The future of the EPS file format

    EPS quickly became an obsolete file format which is replaced by PDF as PostScript itself is also removed gradually and by PDF. Don't take just my word on that. Dov Isaacs of Adobe said in a discussion on a forum of PrintPlanet on the future of PostScript: ' ... '. Adobe will continue to support the EPS graphic format inherited for import of managed, opaque colors graphic data in applications (such as InDesign and Illustrator) Adobe.  Although some of us recommend that new graphic content be stored in format EPS (except to satisfy the need to import data in the programs layout that are not quite focused on PDF - no need to name names here!), our user base should feel comfortable that there is no need to worry about a need to convert their very important EPS graphic asset libraries. »

    OK, you used my name...

    First of all, I have never said "that EPS will soon be obsolete." I did not use those words explicitly or even implicitly. The legacy implies that this is really not the current workflow favorite, plain and simple.

    Regarding the cartoons, the format used to send the cartoon really depends on how the cartoons are drawn. If the cartoon is physically drawn on paper the pen and hand coloring, then it's probably logical to scan these drawings and save as TIFF, JPEG files scans not! JPEG is frozen and especially poor for what looks like actually to the linework. If the cartoons are drawn in a program such as Adobe Illustrator vector, then the best format to send to you is clear, either PDF or at worst, native Adobe Illustrator (.) Files HAVE).

    -Dov

  • Embedding a video file format in Edge, video game car

    During the video incorporation on the edge, must be the mp4 file format? And once the video is embedded, how to play automatically?

    Use the mp4 and ogg.

    Ogg or ogv is for Firefox

    MP4 for other browsers

    You can convert ogg on the FF site here: Firefogg - video and audio encoding for Firefox

  • Read multiple files in the folder and add data to a file

    Hello world

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 cm 0 cm 5.4pt 5.4pt; mso-para-margin: 0 cm; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I have several (hundreds) text files in a folder. I want to combine the data of the files into a single file. It must of course begin to file the oldest and sequentially read the files to the latest changes and add all the data in a new txt file.

    Here are the typical two consecutive files comma separated data:

    2009-02-17, 23:17:04, ff1c, 00ff, 0093, 0000, 0100 and 0001-ffff, d3ae, 0cce, 0 cd 4, DC 4, 00 c 2 0, 000 a, 09e4, 0609, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:06, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3af, DC 0 5, 0 cd 7, 0ccf, 00C 2, 000e, 09e6, 0608, 0003, 0000, 17 c 7
    2009-02-17, 23:17:09, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b0, 0 cd 2, cd 0 1, 0 cd 5, 00bb, 000d, 09f1, 0608, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:11, ff1c, 00ff, 0093, 0000, 0100 and 0001-ffff, d3b1, 0c 21, 0ccf, 0 cd 3, 00 c 2, 000 a, 09e3, 0608, 0000 and 0000, 17 c 7
    2009-02-17, 23:17:14, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b2, 0cc9, DC 0 5, 0 cd 7, 00 c 4, 0008, 09e4, 0608, 0000, 0002, 17 c 8
    2009-02-17, 23:17:16, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b3, 0 cd 2, cd 0 6, 0 cd 7, 00bf, 000d, 09eb, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:19, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b4, 0cc9, 0 cd 8, 0 cd 2, 00 c 2, 0009, 09ea, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:21, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b5, 0 cd 2, cd 0 1, 0 cd 1, 00 c 2, 0009, 09e8, 0608, 0000, 0001, 17 c 8

    2009-02-17, 23:17:24, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b6, 0 cd 3, cd 0 3, 0 cd 3, 00, 000d, 09eb, 0608, 0001, 0001, 17 c 9
    2009-02-17, 23:17:26, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b7, 0ccd, 0 cd 8, 0 cd 4, 00bc, 0006, 09e6, 0608, 0001, 0003, 17 c 8
    2009-02-17, 23:17:29, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b8, 0 cd 2, cd 0 3, 0 cd 3, 00C6, 000d, 09e9, 0608, 0001, 0001, 17 c 9
    2009-02-17, 23:17:31, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3b9, 0ccf, DC 0 3 0 cd 4, 00ba, 000d, 09e8, 0608, 0000 and 0000, 17 c 8
    2009-02-17, 23:17:34, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3ba 0c1b, 0 cd 3, cd 4 0, 00 c 0, 0009, 09e9, 0607, 0001, 0000, 17 c 8
    2009-02-17, 23:17:36, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3bb, 0 cd 3, cd 4 0, 0 DC 3, 00 c 2, 000 a, 09e8, 0607, 0001, 0003, 17 c 9
    2009-02-17, 23:17:39, ff1c, 00ff, ffff 0093, 0000, 0100, 0001, d3bc, 0 cd 4 0 DC 4, DC 0-2, 00b 5, 000d, 09e9, 0607, 0001, 0002, 17 c 9
    2009-02-17, 23:17:41, ff1c, 00ff, ffff 0093 0100, 0000, 0001, d3bd, 0cbd, 0 cd 4, 0 DC 7, 00 c 2, 0009, 09e8, 0607, 0001, 0001, 17 c 9

    Text files have no header just the RAW file as seen above.

    Would appreciate any help. Thank you in advance.

    Concerning

    Dan

    Hi Dan,.

    I don't know what version of LabVIEW u using, I have attached the vi in the 8.5 v. My vi sorts the file names by order alphabetical use get info file vi to do sorting like u mentioned

  • How to read a text file that is longer than 65536 lines and write the data to a spreadsheet Excel and the data to write in a new column, once exhausted 65536 cells in a column?

    I have data to the basic generic text file format that must be converted into Excel spreadsheet format.  The data are much longer than 65536 rows and in my code, I was not able to find a way to see the data in the next column.  Currently, the conversion is done manually and generates an Excel file which has a total of 30-40 complete columns of data.  Any suggestions would be greatly appreciated.

    Thank you

    Darrick

    Here is a possible solution to the (potential) problem. Convert an array of strings and erase the data before writing to the file

  • Reading file from the ftp server and importing data into the table

    Hi experts,

    Well, basically, I text with different layout files have been uploaded to an ftp server. Now, I must write a procedure to recover these files, read and insert data into a table... what to do?

    your help would be greatly helpful.

    Thank you

    user9004152 wrote:
    http://it.Toolbox.com/wiki/index.php/Load_data_from_a_flat_file_into_an_Oracle_table

    See the link, hope it will work.

    It is an old method, using the utl_file_dir parameter that is now obsolete and which is frankly a waste of space when external tables can do exactly the same thing much more easily.

  • How can I recover the modules and their data from a failed HARD drive (the lost BONE areas, but data files are readable)?

    The HARD drive that was my OS (Windows XP Pro SP3) failed and lost quite a few areas which are essential for the operating system running. Other data is still readable. A got another HARD drive and installed Windows XP SP2, Firefox and other programs. I was able to retrieve the bookmarks, security certificates, and other profile information using the information found in bandages.

    None of them addressed how do to recover the modules or their data. Specifically, there are several large, elegant scripts that took months to develop and customize.

    Articles related to migration and other do not work for me because they require the old copy of FF is functional, that is not because the OS on this HARD drive is damaged. Is it possible to recover these data, similar (or not) about how I could get the other profile info?

    Have you copied the entire folder C:\Documents and Settings\username \Application Data\Mozilla\Firefox\ on the old drive?
    If this is not the case, can you?
    If so, make a copy and save this folder just in case.

    If so, you could replace this folder on the new facility by \Profiles\ [with your profiles inside] folder and the profiles.ini file [delete all other files / folders that may also be in the folder "Firefox"] -and then replace with the same folder named from the old failed drive. Note that you will lose what you already have with the new installation / profile!
    Your profile folder contains all your personal data and customizations, including looking for plugins, themes, extensions and their data / customizations - but no plugins.
    But if the user logon name is different on the new facility that the former, any extension that uses an absolute path to the file in its prefs will be problems. Easily rectified, by changing the path to the file in the file prefs, js - keep the brake line formatting intact. The extensions created after the era of Firefox 2.0 or 3.0, due to changes in the 'rules' for creating extensions usually are not a problem, but some real old extensions that need only "minor" since that time can still use absolute paths - even though I have not seen myself since Firefox Firefox 3.6 or 4.0.

    View instead of 'Modules' I mentioned the 4 types of 'Modules' separately - Plugins are seen as 'Add-ons', but they are not installed in the profile [except those mislabelled as a "plugin", when they are installed via an XPI file], but rather in the operating system where Firefox 'find' through the registry.

    Note: Migration articles can tell you do not re - use the prefs.js file, due to an issue that I feel is easily fixed with a little inspection and editing. I think you can manage that my perception is that you have a small shovel in your tool box, if you encounter a problem you are able to do a little digging and fixing problems with the paths to files - once you have been warned.

    Overall, if you go Firefox 35 35 or even Firefox 34 to 35, I don't think you will run in all the problems that you can not handle [that I cross my fingers and "hope" that I'm not on what it is obvious].

    With regard to the recovery of the 'data' for individual extensions - there are many ways that extension developers used to store their data and pref. The original way should save in prefs.js or their own file RDF in the profile folder. While Firefox has been developed more, developers started using their own files in the profile folder. And because Mozilla has started using sqlite database files in Firefox 3.0, Mozilla extended their own use of sqlite, as have extension developers.
    Elegant uses the file stylish.sqlite to store 'styles', but something in the back of my mine tells me that 'the index' maybe not in this file with the data. But then again, I can be confusing myself a question I had with GreaseMonkey awhile back where I copied the gm_scripts folder in a new profile and with already installed GreaseMonkey but with no script. These GM scripts worked, but I could not see them or modify them - they do not appear in the user GM extension interface window in Firefox.

  • Cannot open the terminal failures of the file 'C\:HP\DATA\HP. DAT' to read.

    I've just updated my bios on my HP Pavilion g6-2102au Notebook PC.

    I had continuous multi color screens, thought it was overheating but not so much.

    I installed the latest version of the bios and it seems to have worked? having had a twinkle while writing

    This.

    My query is to start up when he started I get this message and I said OK

    Terminal Failute cannot open the file 'C\:HP\DATA\HPLB. DAT' to read.

    This is the message that someone help me get rid of it

    See you soon

    shiner2348

    Hi @shiner2348,

    Thank you for your inquiry.

    I understand that you receive the error message "Terminal failure cannot open the file"C\:HP\DATA\HPLB. " DAT' to read '.

    This is a reference to the launch of HP software box.    I suggest to uninstall and then restart your laptop.

    If you want to keep this app I suggest that you try to download it and install it using compatibility mode.

    Here are links to help you in this process:

    Compatibility mode

    HP launch box Windows 8

    Please let me know the results.


    Thank you for your participation in the Forums of HP! We want to help you as well as others who may encounter a similar problem as you. Please consider tagging the post in order to solve your problem as "accept as Solution" to help other members of the community!

    To show recognition for my efforts please click the Thumbs Up below.

Maybe you are looking for

  • New emails show as read

    Since the installation of iOS recent 9.3.2 update on my iPad pro I noticed that when the arrival of new e-mail, if there is more than one while only the first has the blue dot indicating that it is new and not read beside him, others are all as open

  • How can I download service pack 1A

    original title: How can I download service pack 1a for my computer to install on the laptop got for her grandchildren bought 2 varbook computers cell phones of our elementary for her grandchildren when they are home, I installed XP but I am unable to

  • All-in-one printer, HP Photosmart C5280 - Mac OS 10.7.5

    Having problems printing, either from the Web or a document. I keep getting this error message: cupsRasterInterpretPPD has an error: Page header uses the unsupported values.  What is the devil This means and how to do? Found nothing on the Site to he

  • Guest account, how to restrict access by time-of-day

    Hello I am a beginner with Wifi/WCS and have a question about how to limit access to guest accounts. When you create a new guest account, you set the start and end time + end date. Is it possible that I can force the account be active _only_ between

  • How to create a recovery image using the key of Windows 8?

    Confusion of title: original backup I bought Windows 8 online... downloaded and installed. When Windows Update 8.1 is available, the Microsoft support team made this update remotely... as I was part of the people having problems. I would like to make