How to draw an image with reflection effect?

Hi!, someone know how to draw an image with reflex effect?. I develop in JDE 4.7 with the simulator of the storm. I want to put a picture below a reflex effect as Apple Inc. and normal. My request is a CLDC and I use a MainScrren class, this is an example of what I want to draw:

Angel

Hello

I found the code on the net, it works very well on j2me that even can be used also in blackberry below.

public static Image createShadow(Image image) {

        int newX = image.getWidth();
        int newY = image.getHeight()/2;
         int out[] = new int[newX*newY];
         int row[] = new int[newX];

        for (int iy = 0; iy < newY; iy++)
        {
          image.getRGB(row,0,newX,0,iy+newY,newX,1);
          for (int i = 0; i < row.length; i++) {
              out[((newY-1)*newX-iy*newX)+i] = row[i] & ( (127*iy/newY)<< 24 | 0xffffff);
          }
        }

        return Image.createRGBImage(out,newX,newY,true);
    }

Hope this will solve you problem.

Please let me know if it solves your problem or not.

Tags: BlackBerry Developers

Similar Questions

  • How to insert photoshop image with a work/clipping path in illustrator using the path?

    How to place an image in Illustrator using the clipping/work path created in Photoshop?

    I have a .jpg of an object on a background image. This image has a clipping path that écrêtera the background of the image. I could clip the outside background (in Photoshop) and save the image as a file .psd with a transparent background, and then insert the .psd file in Illustrator... it's easy. What I can't understand is to place the image (bottom) .jpg and use clipping path Photoshop be clipping path in Illustrator. In this way, I can take this clipping path and use it as a layer of gloss spot for production. I work on a Macbook Pro and CC2014. Thank you.

    But you can export the path separately in Illustrator, then he get married to the JPEG placed as a clipping mask.

    In traces of Photoshop Panel, target the path, and then choose file > export > traces to Illustrator...

    He'll write a .ai file. Open and select all (it's a quick and easy way to 'see' the path because Photoshop it will export with no border or background, leaving mostly 'invisible' on the artboard Illustrator).

    Then you can copy it to the collage at the top of your JPEG placed. Position them as you like, select this option and the JPEG format, then choose object > clipping mask > make...

  • How to draw a circle with tabs around it

    Hey, I need to draw a circle with tabs around it as follows:

    circle.png

    I got tired of drawing of a rooster, but I need the inside edges as State not tilted. These look like rectangles with curved roofs. No idea how I can do this? If possible to create an individual tab first and then get the right angle adjust the circle? Pointers on this would be really appreciated! Thank you

    Just do a single tab with the corners that intertwine with the circle. Turn on benchmarks commented to the corners align with the edge of the circle. Make sure that the two forms are horizontally centered.

    Then select the tool rotation and option-click on the center point of the circle. Smart Guides will break the pointer to the center of the circle. Enter your angle of 60 °, and then click "copy".

    With the shape of the tab selected, select transform again four times.

    Select all tabs and make a shape composed of them (command-8). Make a copy (command-C). Send the tabs on the front of the stack (Command - Shift)]-. Click on less prominent in the Pathfinder palette. That should leave you with this:

    Finally, paste a copy of the tabs in place (command-F) to get this:

  • How to crop an image with a mask clip using a circle instead of a rectangle?

    I looked at the Adobe TV Illustrator tutorial on the cropping of the image with a clipping mask. In the video, the presenter uses the rectangle tool with the clipping mask and mentions that the shape of circle or vector could be used, but I can't understand how to get the circle.

    http://TV.Adobe.com/watch/learn-Illustrator-CS6/cropping-images-with-clipping-masks/

    I am new to Illustrator and need step by step instructions!

    Thank you!

    Here's how to make a mask for clipping in illustrator, tutorial

  • How to make an image with a transparent background?

    I brought a picture of PS in Illustrator and I want to put in AE and use the puppet tool. However, when I bring what it has a white background, but I got everything as the object I'll puppet, so how can I do to?

    AE does not require an image will initially come out by Illy. Just make sure that your image has a transparent background or an alpha channel, if needed, and then save as a psd file. AE take the PSD in images, unless you need a compostion and folder for the psd, created in the project list. You should then be able to use the tool puppet on an image with a transparent background.

  • How to remove the image with a single click?

    Hello friends, I want a help with something simple.

    I want to open my app when displaying an image with data or information and clicking on, get out and show me the menu of the application as usual.

    My picture is this:

    seen in my application, but I can't make it go away

    Solution:

         ImageButton {
                    id: imageView02
    
                    defaultImageSource: "asset:///images/IMG_00000014.png"
                    onClicked: {
                        imageView02.visible = false
                    }
                }
    
  • How to draw a line (with the line segment tool) then draw another line, from those previous anchor point. When I try immediately draw another line on the other anchor lines it try to turn instead.

    I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.

    Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.

    Advice would be great because it's driving crazy me.

    See you soon,.
    Kyle

    Yes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.

  • How to watermark multiple images with different dimensions in Photoshop?

    Is there a way I can place a watermark on the bottom right of the multiple images, any size images? I tried to use Photoshop Scripts > image processor, but it only works for images of the same size. I want to put the watermark on multiple images of different sizes. It is the output I got.

    For the first image watermark placed properly, but for the second picture watermark is distracted. As you can clearly see the dimensions are different. Please suggest me a solution.

    additional1.jpg

    test.jpg

    As this video should help you.

    How to watermark multiple images in Photoshop CS6 - YouTube

  • Newbie question - how to move a layer with the effect of deformation without changing the distortion?

    For example, to move a layer with an effect of training as well as his training center, so I don't have to make the corresponding calculations Center ripple and position.

    GSIDesign wrote:

    ... the two methods roughly the same result but are very different when you move the training center now.

    Thanks for the tip of the expression.

    If the mask is exactly the same size and shape as the shape layer, then you should get the same results.

  • How to draw a rectangle with a border change according to a border image?

    Hi, I already walk image on a photo. Now I want to draw a rectangle at the end of the walk, but the border of the rectangle and border on foot to meet another eact perfectly.

    example image I gave below (downloaded from the internet). I want to fix this rectangle at the end of the foot.

    Thanks in advance

    https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQRMYcCcxX5sC9jv8AUS64LSfb8I7K6GSsKCsCrUCOE1tbQ6f-Phttps://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRSj_yAwQWXik-xB-spAi9gZwUSgz6JkPCgpGmdajCrY0h6P0hGnw

    Nice day!

    Could you please post a screenshot with the Panel visible layers?

    Is the iten by chance one layer shape and therefore does not have a vector mask?

    Kind regards

    Pfaffenbichler

  • How to export a movieclip to Image with filter effect?

    Hi all,

    I just tried to export a Movieclip to an Image that is not possible for me, this movieclip has done more filter effect then and inner most sub Movieclip, help me please to export the image I see on output swf.

    To give a simple example for this... It would be more useful for me please...

    Thank you
    Claudine

    You are welcome.

    p.s. Please mark this thread as answered, if you still can.

  • How to draw a bright line transparent effect

    Hello

    I'm trying to draw a white line bright through an image but stuck with how to get the effect.

    That's what I've done so far:

    That of what I'm trying to accomplish but line is straight:

    Thank you

    instead of treating your mesh as a subject in its own right with its own colours, think that it is simply something that changes what you have underneath. Just use gray with different opacities and blending modes (multiply for the shadows, screen for highlights.

  • Scroll image with the effect

    Hey,.

    can someone help me? I'm still learning Adobe Muse and when you go through examples, I've seen this effect on many Web sites: http://www.soulmemoria.com/themes/tf-tersus/tersus03_muse/

    When you scroll down, the image of the laptop behind the text "Learn more about Tersus" remains basically unused as other content on the move by page. The creator of this seems to have used this effect several times throughout this Web site.

    Someone knows how to do this?

    It is an effect of parallax. Draw a box using the rectangle tool and then in your command bar, click the fill option and add a picture after that go to the tab activate the motion effect

    then set the parameters to 0.

  • How to source an image with HTML in Adobe Muse?

    Hello, I am wanting a horizontal slideshow for images and I got the code works well on my site of muse, and everything I do now if fill with images. I looked in the syntax to place an image and I'm not sure how to handle the sourcing (as I never did before code).  It is for something like this:

    " < img src = ' URL " alt=" some_text ">

    I have images to place them in the slide show, size, cropped and ready to go, but I don't know how the entrance of the syntax in the "source" of my images - they are just sitting in a folder in "my pictures" on my desktop. My workplace has a server where all we can access the same files... will that help?  I've seen where people refer to images in their code simply by typing the web address of its Web site with the name of the image at the end... What confuses me! --> How download an image on my site of Muse, without being seen and then reference it in a slide show?  This process doesn't seem wise. I'm lost! Help please!

    Here are a few links of o who will help in your quest and answer 95% of your questions.

    http://www.w3schools.com/HTML/html_images.asp

    http://www.htmlgoodies.com/primers/HTML/article.php/3478181/basic-HTML-images.htm

    http://www.Adobe.com/products/business-catalyst/FAQ.html

    http://www.w3schools.com/JS/default.asp

    http://jQuery.com/

    The other 5% is fine Muse will play with it. That I can't answer fully because I have not tested all scenarios. Yet once again, the intrinsic nature of the Muse is "designed" deviate away from custom coding. Also, in your previous post, it's a little unclear about your where all your folders/files Muse reside. IE: on your companies server or BC or a bit of both. I know eventually all your trying to do is for something. Sounds pretty simple right? And in your development it may come a time when you need more advanced features CMS, that is why BC seems logical.
    What you find along the way, it's that it may involve more then you expected. Certainly if you can make this work then go for it. The problem is sometimes, while things may seem simple in theory, without sufficient practice employing these theories (the coding / the syntax) then any number of errors may occur leaving scratching you your head and curse why you bothered in the first place. Another option is to rethink your strategy. Is it really all that important uber cool linear continuous scroll effect? This will set my site? Then I implore an imagination and thinking and make it easier on myself by using the tool at hand (Muse) is Max to reach the final objective?

    Just thinking but as stated earlier if you can make this work then, go for it. And if the mods or other users may be more help as I have, then it would be great as well!
    Happy holidays, good luck and report your findings :-)

    Edit - with so many things about myself, I forgot to mention that (when you have all your dotted i and you braided s) you might try to insert the script in the html code for head feature through the metadata tab in your properties page.

    Post edited by: GVD321

  • How to print a Movieclip with filter effect?

    Hi all

    I have a movieclip, which is to have the shadow and glow effect applied to the filter.

    I don't know how to print through flash. Pls help me...

    Thank you
    Claudine

    If mc is your movieclip with a filter, use:

    import flash.display.BitmapData;
    var bmpd:BitmapData = new BitmapData (mc._width, mc._height);
    bmpd. Draw (MC);
    var tl:MovieClip =;
    tl.createEmptyMovieClip ("h", 1);
    h.attachBitmap(bmpd,1)

    var pj:PrintJob = new PrintJob();
    PJ. Start();
    pj.addPage(h,null,{printAsBitmap:true});)
    PJ. Send();

    p.s. Please mark this thread as answered

Maybe you are looking for

  • No comments in Bridge mode network

    I'm not able to maintain a network of comments on my AEBS. If I use the bridge mode on my ADSL modem, then the guest network is visible but not able to be reached by any user with or without password. If I try to use the bridge mode on my AEBS then I

  • Front open LV from one faltering step?

    If a grave step down I want to show the façade LV then the 'Tester' can see all the orders/lights to get more info on what went wrong. new to TestStand so this can be basic stuff, but I have not found a solution. PER DAY

  • Impossible to delete empty columns of controls palette

    Certainly a low priority, in fact just a gene. I was using the palette Editor (menu below shortened manually) today in order to copy the existing palette icons by saving them as glyphs. When you leave the palette I have not spared, but had not in fac

  • Problem with outlook

    Remember - this is a public forum to not publish private information like email or phone numbers! Ideas: Object, Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC7B You have problems with programs Error messages Recent changes made t

  • Native PBKDF2?

    The native API of Blackberry has a PBKDF2 (password-based key derivation function) application available?