Semi-transparent image

Hello

I'm working on a small and simple pdf generator (just for the simple purpose of drawing), and I'm trying to manage a semi-transparent image (such as png).

I managed not semi transparent image (therefore with no alpha channel) as jpeg, bmp,... or not semi transparent png (or remove the alpha channel in png for display).

When you generate a single PDF file (a single page, with a picture drawn on it with a non transparent), I get something like this:

%PDF-1.7

1 0 obj < < / Type/Catalog Pages 2 0 R > >

endobj

2 0 obj < < / Type/pages /Kids [4 0 R] count 1 > >

endobj

3 0 obj

< <

/ Title (Test)

/ Author (me)

/CreationDate (D:20130710104410 + 02'00 ')

/ModDate (D:20130710104410 + 02'00 ')

> >

endobj

4 0 obj < < / Type/page there 2 0 [0 0 595 841] /MediaBox /Resources R 0 R /Contents 5 6 0 R > >

endobj

5 0 obj < <

/ XObject < < / Im1 7 0 R > >

> >

endobj

6 0 obj

< < / length 33 > >

data flow

q

149 0 0 66 50 725 cm

/ Im1

Q

EndStream

endobj

7 0 obj < <

/ Type /XObject

/ / Image subtype

/Width 149

/Height 66

/ Space colorimetric /DeviceRGB

/ BitsPerComponent 8

/ Filter /FlateDecode

338 AR

> > stream

BINARY DATA STREAM

EndStream

endobj

Xref

0 8

0000000000 65535 f

0000000009 00000 n

0000000056 00000 n

0000000111 00000 n

0000000413 00000 n

0000000515 00000 n

0000000563 00000 n

0000000643 00000 n

trailer < < / size/root 8 1 0 R /Info 3 0 R > >

startxref

1147

%% EOF

According to the specification pdf, i ' v tried to manage the alpha channel of the image using SMask like this:

Add a SMask X R o (where X will be 8 in my example) to my Image of XObject (7 0 obj in my previous example); and then generate the new 8 0 obj with only the alpha channel data.

My SMask object has the same width/height of my Image (this is the alpha layer), each pixel varying from 0 to 255 (alpha opacity value), extracted and encoded as the way of my RGB image.

So, if I update my example, I have:

%PDF-1.7

1 0 obj < < / Type/Catalog Pages 2 0 R > >

endobj

2 0 obj < < / Type/pages /Kids [4 0 R] count 1 > >

endobj

3 0 obj

< <

/ Title (Test)

/ Author (me)

/CreationDate (D:20130710104410 + 02'00 ')

/ModDate (D:20130710104410 + 02'00 ')

> >

endobj

4 0 obj < < / Type/page there 2 0 [0 0 595 841] /MediaBox /Resources R 0 R /Contents 5 6 0 R > >

endobj

5 0 obj < <

/ XObject < < / Im1 7 0 R > >

> >

endobj

6 0 obj

< < / length 33 > >

data flow

q

149 0 0 66 50 725 cm

/ Im1

Q

EndStream

endobj

7 0 obj < <

/ Type /XObject

/ / Image subtype

/Width 149

/Height 66

/ Space colorimetric /DeviceRGB

/ BitsPerComponent 8

/ SMask 8 0 R

/ Filter /FlateDecode

338 AR

> > stream

BINARY DATA STREAM

EndStream

endobj

8 0 obj < <

/ Type /XObject

/ / Image subtype

/Width 149

/Height 66

/ Space colorimetric /DeviceGRAY

/ BitsPerComponent 8

/ Filter /FlateDecode

AR 1092

> > stream

BINARY DATA STREAM

EndStream

endobj

Xref

0 9

0000000000 65535 f

0000000009 00000 n

0000000056 00000 n

0000000111 00000 n

0000000413 00000 n

0000000515 00000 n

0000000563 00000 n

0000000643 00000 n

0000001160 00000 n

trailer < < / size 9/root 0 R /Info 1 3 0 R > >

startxref

2420

%% EOF

SMask using is the right way to manager an alpha channel, or not?

I tried to generate a similar pdf from word with a pdf printer driver, but apparently not generating a SMask tag and the object.

Must the SMask object (my 8 0 obj) must be reference to the resources pdf (5 0 obj)?

In fact, my pdf is not displayed in Adobe Pdf Reader (latest version, an error is contextual, say that there is a mistake in my pdf) but it appears correctly with another pdf reader (PDF, architect).

Kind regards

Alex

#3-DeviceGray

Tags: Adobe Developers

Similar Questions

  • How to place text in a semi-transparent image? * included example *.

    Could someone please please tell me how to place text in a transparent as below?

    I would like to do something similar to this using my own text and a different background.


    Thank you

    Love.jpg

    Please read the section titled 'Knockout to reveal the content of the other layers' in the reference.

  • Text and PDF is faded, semi transparent and unreadable.

    Hello
    Since the installation of Firefox 6, when I tried to open a PDF file, the image looks like it summer flows in a bad copy machine that is almost out of ink and is semi-transparent. (I can see the background image to display on my desktop via the PDF). I have Adobe Reader X 10.1.0 installed version, which seems to be the last plugin. (I checked all my plug-ins Adobe are up-to-date and also disabled every plugin but Adobe Acrobat and the problem persists.) I also noticed this problem with some of the text in the Flash applications, I opened it, such as practical a quiz site for a manual that I use for school. This does not occur in Internet Explorer, or when I open a PDF file in the viewer Adobe, leading me to think it's a Firefox problem. It's pretty frustrating that I can't read my documents online or study for my exams using Firefox, because overall, it's my browser of choice. Counsel on how I can try to fix this problem? Thank you.

    I have Firefox 6 (but several versions have the same problem) and was faced with the same problem and finally found the Solution. Firefox has hardware acceleration is enabled by default. You must disable.

    You can do it under Tools-> Options-> advanced. Uncheck the hardware acceleration

    1, type about: config in your address bar and promise to be careful, then search in gfx.direct2d.disabled preference name.
    Double-click the preference to True.

    2, check disable it Firefox Direct2D and DirectWrite Hardware Acceleration.
    Find the name of the preference gfx.font_rendering.directwrite.enabled .
    Double-click the preference to false.

    Restart Firefox. You should get clear, sharp images as well as correct rendered PDF back. It worked for me!

    Source: http://www.mydigitallife.info/fix-firefox-4-fade-blur-bold-bad-and-ugly-font-rendering/

  • Progress with the semi-transparent cursor display?

    Hello

    I'm working on a project which controls 28 rooms.  I want to have a screen with bars of different colors for the different stages.  I'm here thinking sliders.  I want to fill them before the start of the execution and then have a coverage slider which is semi transparent to cross.

    I don't see a way to get the transparent semi with the cursor in another.

    My next idea is to have a translucent image 2D on top that changes size running.

    Simple suggestions?

    Thank you

    pgaastra wrote:

    I can't the fill is semi transparent?

    Yes. As I said, there are a number of ways in which you can do, but to stay in line with what you already have, you can create a semi transparent PNG square (I like Paint.NET, but I think that PowerPoint should also work for this) and imports that instead of filling. The key point is that, once you do this, you need to hide the background of the slide. To do this, select window > show window pieces in the editing mode and find the part called cosmetic. Change its size and position so that it is hidden. Alternatively, you can import a transparent image to replace it. Will allow you to see behind the slide.

  • Semi-transparent on Storm

    Hello

    The storm or any other BB device does semi-transparent? I have an image when when you press this image I want to paint a picture semi-transparent on top so that the user understands that the event has occurred.

    Of course you can do all you need to do is paint the right items in the right order ...

    If you don't know how to paint things to an item with background tranpaent check the following in the graphic API

         

         setGlobalAlpha (int alpha)

    Sets the current global alpha value for drawing operations.

    Paul

  • Semi Transparency question

    OK, so I use Photoshop CC 2014.2.2 on a PC and I have a strange problem transparency I can't find the cause of.

    It is the original image with a background layer dark Pier behind him.

    But when I put this picture in the paper, I work on tools somehow become semi transparent and show what is behind them

    I have restarted Photoshop, restarted the computer. I disabled all my other layers. None of the 3 that are on having any sort of change in mode or opacity of the mixture, so I'm rather perplexed! I also tried to simply open both files and duplicate the layer with the tools over the other document, but it still does the same thing.

    Any thoughts? Is there a setting somewhere that I may have inadvertently changed? Thanks for any help!

    Have you tried to check the blending mode for the 'Tools' folder itself?

  • I have a problem getting the semi-transparent icons to appear...

    I can't get the semi-transparent icons to appear (those that show if an image has been previously published, collections or cropped Rapids). I was hoping someone could point me in the right direction on how to reset or reapply.

    Thank you, Perry

    If you are talking about those in the vignettes in the film strip, you have resized the film until they are too small to display. Try mousing over the top border, and drag it larger to see if they reappear.

  • How to make a watermark semi transparent?

    I want to make a watermark to include in all my images. I would like to create a text that is semi transparent completely transparent one side then discoloration on the other side. Can someone tell how to do it please? I have CS5. Thank you.

    I'll show you my way:

    1. Enter the text and click on the layer mask icon. The layer mask should be all white and a small border. Which indicates the mask 'active' ist.

    The foreground color should be black and the background color white.

    2. choose the gradient tool. The degraded window. Choose the first gradient, "foreground to background" = black and white.

    Change the color from white to gray.

    3. check the layer mask > is active?

    Apply the gradient from right to left on your text.

    See the thin line in the screenshot.

    4. on your mask layer appears the gradient left starting with gray and straight ending in black.

    The advantage of this method is that you can change your text without changing the gradient.

    The black color on the layer mask hides the text, gray makes the text more or less visible, and white means completely visible.

    It will be useful.

    Miss marple

  • Is it possible to restore the opacity in a semi transparent PNG?

    Through the window of the channels, I can paint on the R, G and B channels individually. That's fine, but where is the Alpha channel? Photoshop only allows me to create a new layer of opacity that simply subtracted from the native opacity of the PNG - may not add to it. What I need is increasing opacity.

    In other words: I have the parts of this semi transparent PNG, and I need them to become opaque. How can I do?

    Hey, doubtful.

    I'm not in front of my computer, so I can't test this theory out, and I don't know your exact layer configuration, but what happens if you duplicated the semi-transparent layer several times? Each repetition must add an additional layer of opacity, ultimately having an opaque image result.

    With this selected layer, CTRL + J (Windows) or command + J (Mac) is the shortcut to duplicate layer.

    Give that a shot and let us know if it works.

  • Permissions, Imagine quality and ability to change color / add a semi-transparent area without LC

    I'm new Adobe LiveCycle Designer ES2 and I have a few questions:

    1. when I import a PNG image, the white background appears black, and when I import EPS quality is very low. How can I make it work?

    2. I am preparing a submission form case, where the customer has a checklist and he can choose what he would like to order. After sending to society the PDF file, I would like to stress that the company will add details in the file (for example of chaining number, comments, etc.), which alone will be able to add to the PDF file (they do not have Adobe LiveCycle Designer ES2). How can I do?

    3. If some elements are missing in the PDF mentioned, I wish the company to highlight these areas. For example, it is a-grade, and in this category there are topics 1, 2 and 3. Let's say that the client has chosen point number 2, but it does not exist at the present time, is it possible to return the form with the updated 2 item highlighted in red? Or better yet, a semi-transparent red box that appears on the point 2, indicating that it is missing.

    Thank you very much for your help!

    Tom

    Hello

    When you work with images, I tend to use jpeg files. If you use LNG make sure the color space is RGB and the file is saved as an 8-bit png, especially if there are transparent.

    You can include a button with fill, border, or legend. Only employees would know where he is. By clicking on the button may bring up a dialog box or hidden fields that would enable the employee to fill the additional elements/values. There is little an example here: http://assure.ly/ge8Ra9.

    LC Designer doesn't handle too well transparent fills, but you can bring color to a pastel hue. So if the objects were in a subform, checking a check box (not available point) could change the color of the subform to a red light. I'm not an example on the rise for the moment.

    Hope that helps,

    Niall

  • Button, screen change to the semi transparent white

    I am new but not Adobe Captivate product.

    I build my images in photoshop and import into Captivate. I have a next button which I am activation with a box of click "go to the next slide. I have the slide to 20 seconds in length. At the end of the slide, the screen turns white semi transparent covering everything except the button. I would have preferred that the screen remains fully visible until a user decides to click to the next slide. Being new Captivate, I probably make a simple mistake, but at the same time may not know how to get what I want. Thanks for any help,

    Dan Huber

    Hello

    Rick pointed out what is the most likely cause for the 'transparency' you see: fade in / fade out (your PS image) object. If you do not want the transition fade, open the properties of the object (select it and use Enter), the transition can be found under the Options tab. And by default there will be also a fade to the first slide and fade on the last slide. These can be changed under Edit, preferences (or SHIFT + F8), part of the project, beginning and end.

    Lilybiri

  • SEMI TRANSPARENT GLASS EFFECT BUTTON

    Hello

    I'm looking for any reflection on the contribution of a glass effect button semi transparent please.

    I've been playing with this for awhile in FW and still not get the look I'm after.

    I'm designing an arty site that has a lot of gray with large images. Rather than use words to nav around the site, that I want to use images, nothing new there and loads of time however did that on this site I would use a button transparent semi which is clear'ish and then changes color slightly when you click it.  I can make the mouseover in flash so that isn't the problem. I am not fan of buttons.

    In short;

    Someone has fun ideas for a glass button semi transparent which could be used to nav around a site?

    I also need to "tone" it with a color when mouse over.

    Thanks much for any help.

    I jumped 'Fireworks tutorial"in Google, because I know that Smashing Magazine has a nice overview (http://www.smashingmagazine.com/2009/07/27/tutorials-and-resources-for-adobe-fireworks/).

    You could read on these four tutorials and see if any of them have techniques you could use or adapt:

    http://Abduzeedo.com/James-white-o-series-Fireworks

    http://blog.blue2x.com/?p=61

    http://www.voidix.com/fireworks_gel_button.html

    http://qrayg.com/learn/Fireworks/jewelbutton/

  • Records are blue &amp; semi-transparent dock

    After you restore an iPad Air, records appear in a light blue instead of gray, and the dock is semi-transparent revealing the color of the wallpaper. Any thoughts on how to solve this problem. It is running iOS 9.3.2

    Try a hard reset or change the wallpaper. If none of those work turn to reduce transparency in the increase in contrast

  • When you use one of the themes Aero Windows 7 (x 32), PDF files appear semi-transparent.

    I can't read PDF files in my Firefox browser more. It seems that if they are semi-transparent: the fonts are blurry, and they have the same color as my theme Aero frame. I can see my photo office by police. When I save the PDF, and then open them offline, they are displayed as they should. The prints also appear normal. BTW, when I change to a classic theme, PDFs appear normal.

    Please read this section of the Add-ons site:
    Firefox 6 breaking some themes when viewing content plugin
    6 break-themes-plugin Firefox

  • Transparent or semi-transparent navigation bar all THE apps in Lollipop

    Hello community,

    I want the report to the screen, a bad feature of our Sony with press.

    The navigation bar that contains the soft keys touch remains black in all applications (exception Album and other Sony apps). It smells very bad to see, so there is a solution, a mod, an app WITHOUT ROOT to have a transparent or semi-transparent navigation bar?

    For example, in Chrome, will be perfect to have transparent navigation bar to see full web page complete!

    Thank you!

    Hi Alexdon,

    I read the thread, but does not answer my question; It talks about the immersive mode, but not on the transparent navigation bar.

    But, indeed, the immersive mode is better than the transparent bar, so I searched the web on and I found an interesting application, requiring no root, which allows the user hide the navigation bar in ALL the apps and home screens.

    So, I don't know how Sony has not implemented this feature HIGH on his Xperia devices wih the latest firmware, because it is a feature that enhance value, functionality and beauty of its features...

    The app is named on game of Google as a store GMD Immersive Mode full screen and his works fine (tested personally). The only bug is the keyboard, a bug of Android, where the navigation bar must be required to type and should not used with the camera app (but app inventory also have similar immersive mod).

    I hope that this thread can help other users and, especially, can be read by employees of Sony to natively implement this update functionality in the future or when comes out the new home screens.

Maybe you are looking for