Transparent background for Bitmap image

I am trying to create a Bitmap that has a transparent background. My current code is:

arrowL = new Bitmap(dem.width, dem.height);
arrowL.createAlpha(Bitmap.ALPHA_BITDEPTH_8BPP);
Graphics g = Graphics.create(arrowL);

//Transparent background drawing
g.setGlobalAlpha(0);
g.setColor(0);
g.fillRect(0, 0, dem.width, dem.height);
g.setGlobalAlpha(255);
//END TRANS

//drawing code

This does not work as expected. Is it possible to make the background transparent?

Hello

Try with this.

int width = dem.width;
        int height = dem.height;
        int dataTransparent[] = new int[width * height];

        Bitmap arrowL = new Bitmap(width, height);
        arrowL.setARGB(dataTransparent, 0, width, 0, 0, width, height);

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • Art white on transparent background for gif

    Hello! I have tried several techniques to export my art white on a transparent background, the cleanest possible for a gif, but whatever I make adjustments, it turns out that pixelated. I did defringing and selecting the similar color and edit/cut back on the edges slightly, but it still not working when I export art. Do you have any suggestions? [Thanks:]

    Not really. The format is simply limited to transparency exactly one value. You should really consider not using the transparency at all and backup in the background, if possible.

    Mylenium

  • Definition of MUSE created HTML with a transparent background for DPS

    I am currently using MUSE to create content that is then inserted in the DPS. However, try as I might I can't get the MUSE project to display in DPS with a transparent background. Any ideas?

    Hello

    You must modify the CSS (bearing the same name of file to Muse) and remove the tag, for example.

    HTML {}

    background-color: #ccc;

    }

    Works well

    __Felipe

  • Is it possible to get a transparent background for text and to vary the color of the text of the black and white?

    By the question, you can obviously tell that I am a newbie in InDesign. I have a cover of the album I'm working on, and the printer says that exit Photoshop will be rasterized and InDesign is better for clarity. However, in Photoshop, it's easy to overlay text on a chart where the text background is transparent, so the graph through, and it is also easy to change the color of the text if you wish.

    Change the opacity of the slghtly even filling in a text box in InDesign appears to degrade the quality of the text in a substantial way. I do something wrong, and is it possible to get a transparent background around that? And also, text must be only shades of black and white and no other colors?

    I would appreciate anyone who can take the time to respond to what is probably something obvious to most of you.

    Michael

    I realized that I forgot to include the screen Cap illustration. I'm sorry.

    I seem to be brain dead on terminology, too. The density of Tint slider is clearly labeled hue, no opacity, nuances and not creat a transparent color.

  • Transparent background for Flash video

    I would like to know how to create Flash videos with a transparent background. This allows video to be played on a web page so that the content of the web page shows through the alpha channel of the video. I can edit video in Adobe AfterEffects to generate the file .flv with an alpha channel that can be exported in Flash 8. But when I import into Flash 8 and create the .swf file, Flash provides an opaque background (I chose the color). I want to be able to keep the transparency effect, I created in AfterEffects.

    Here's a URL for the effect I want to achieve:

    http://eimpression.myrealtytools.com

    The video appears rooted at the bottom of the page. It is a very cool effect that I would like to be able to reproduce. I'm guessing that it may require that some actionscript to control the alpha of the background. Any help to understand this would be greatly appreciated.

    to get the transparency effect, actually enter you the .html surrounding using "wmode = transparent" Google this and you should fine a tutorial. Don't forget that when you actually wmode and its value to paste here twice (like all other tags that are already there).

  • Transparent background for png sequences

    I have a cube of 30 sec turning with transparent background in After effect cs 5-5... But I'm with black background png sequence. How to get the Transparent background in png sequence?

    In the output Module choose settings channels: RGB + Alpha, and AE will automatically set color: right (Unmatted).

  • Transparent background for a Label/display element

    I use form 10g.
    I would like to make the bottom of my labels (display elements) transparent. that is, it should be the same color as the canvas (e.g. teal) rather than the ugly white default background.

    Can anyone help?

    Thank you

    Abigail

    Published by: Abigail Parmar on March 11, 2009 09:47

    Unfortunately, there is no standard method to have an object with transparent background :(

    François

  • Transparent background for slide numbering Widget number

    I work at 8, Captivate, and I inserted the widget that puts drag numbers on every page of my module. Unfortunately, each number appears inside a little white square. Can I do the transparent code box so the white square will disappear? I tried this setting in the properties of widget dialog box, but apparently this tool only allows you to format the police number, not the background color. I would appreciate any guidance; Thank you.

    Do not use this widget more, it is not compatible with HTML output.

    Why not just insert a text container (form or legend, make it transparent) on the first slide, post it for the rest of the project and always on top. Insert variables using the X key in the role of composition of the text container properties panel:

    Slide it $$cpInfoCurrentSlide$ $ $ $cpInfoSlideCount$ $

    The advantage compared to having it on the slide, is the text container has an ID that makes controllable: you can hide/show it if necessary on some slides (like the question slides, that have their appropriate progress indicator).

    Be careful though: it is a dynamic, generated text over time. This means that you must use a font for the Web, to have watched as static text. It depends on the output as well, but since you are using a widget, I guess you are using output SWF. In this output, all static text is converted into images, which allows you to use another font even if it is not available on the system by the trainee. This is not the case for dynamic text

  • How to make my picture as a transparent background for my Web page?

    Hi guys I am new to web design so please excuse if that seems like a silly question. I think my website in cs6 fireworks but I am able to edit the photo, I need transparent in photshop cs6 so according to what you feel would be best suited, please advise on how to make the image of the car in this picture below transparent. I need the lack of transparency in order for writing to finally go overboard, how would you recommend that I do this.

    Please note that may also offer you constructive criticism on the overall design of the site. Banners and buttons are that consumers demand not so much can be changed with respect to that.

    screenshot.PNG

    Not sure understand your question about transparent car image.  In web design you use with CSS background images then put real text in the HTML text of overlays on top of the image.

    To change transparency in Photoshop, adjust the opacity or fill level on your layer.

    Nancy O.

  • Transparent background for ObjectChoiceField

    I put an ObjectChoiceField on a screen that haves a background image. The image is painted in the overridden method of a VerticalFieldManager object. By default, the field itself is painted with a white background, but I want to display only the text and see the image below. The tag is painted with transparent bg, but the area of selection has a blue bg when concentrated and a white fuzzy when (it's what I want to change from transparent).
    Is there a way to do this without making plenty of low level painting?
    I tried this:

    ObjectChoiceField ocf = new ObjectChoiceField(tag, options, options.length - 1, Field.FIELD_BOTTOM | Field.FIELD_LEFT) {   public void paint(Graphics g) {       g.setBackgroundColor(0xFFFFFFFF); //the alpha byte is set to full transparent                     super.paint(g);   }};
    

    but has no effect.

    I would also like to paint the tag in a different color from that of the area of selection, and if possible, change background gray from the list of options in a semi-transparent.

    The ObjectChoiceField exposes no methods to control the color of background of the options bar.  The area behind the label should appear transparent, but the part of the option in the field should use the colors from the current theme.

  • How to export an Illustrator file with transparent background, for printing on different types of paper.

    Hello

    I created a card that contains a simple geometric shape and type, and the client would like to for it to print on different kinds of papers / different background colors.

    I don't know what is the best way to export this .ai file to send to print. Your suggestions are appreciated, and my apologies if this question has arisen before.

    Carmen

    The white background is just the preview. The application of the observer must show a sort of background.

    PNG is not specific to printing. If you export a PDF file that has the correct settings (depending on the printing process)

  • AE CS5 rendering/export PS of the text with a transparent background for the web?

    I am sure that this question has been asked and answered a hundread times already, but I can't seem to find the answer. I tried Googling and looking for these forums, maybe I just bad search peramiters.

    I'm trying to create and animate the text via AE CS5 for a web site. Then, I want to use it in Photoshop CS5. I can't find this option. I know that in the past, you were supposed to make the text in the form of film of all kinds, but now I'm just lost and confused on what to do.

    If the answer is just too long to post here, could someone please post a link to a tutorial/response?

    I guess that the answer will be a little different from versions CS4 CS5.

    Thank you.

    Go to any format Quicktime or a sequence image that supports Alpha channels, and then import this file in PS as a video layer or use frames in the layer Import Wizard.

    Mylenium

  • transparent background for an accordion

    I would like to make the background on an accordion, transparent - this possible?

    There is a property called 'backgroundAlpha' that you can set to zero.

  • How can I import an image with transparent background .png in the Vision Assistant?

    Hello

    I am using the Vision Assistant of NOR. Here, I want to overlay one existing image with another. Therefore, I use the overlay Installer where can I import a .png image. If I do, I don't get

    the transparent background of the back of the image, even, I was saved with a transparent background. The image is displayed with an orange background.

    If I import the same image to any front panel for example, I see the picture on the right path with a transparent background. What I've done wrong? I have attached the image I want to use.

    Thank you

    Hello! Don't know how to do this in the Vision Assistant. Try to use the overlay (bitmap) or convert your image into mask. Effect of transparency not supported in the Vision. What you can do in LabVIEW is something like this:

  • Can't get picture with transparent background to appear like this

    I am quite new to PES (using version 6) so thank you in advance for any help you can offer!

    I have a picture and made the background transparent and saved as a GIF file.  The opening, he shows up with the grid background.  Good so far.

    When I drag this photo of the tray inside project (where I still see the bottom of checkerd) in the picture, I am trying, it comes with a solid gray background once fallen into this image.  So essentially, the background is more transparent.

    How can I add this picture with transparent background to the image, I'm working on without a background / frame appear?  I have combed internet and cannot find an answer and searching this forum, still coming up empty.  I think the problem has to do with dragging it from the location of the project.  If not, how can I get in the picture, that I'm getting?

    Thank you!

    Kevin

    In PES 6, dragging it to the top of the location of project creates a sort of layer of passthrough. Copy and paste, or drag it to the bottom of the image window the gif in the other file in the location of the project instead.

Maybe you are looking for