gradient color in JDE 4.5

I use Jde 4.5. I want to fill a rectangle with a gradient color effect rounded edge. I know it can be done in 4.6 above using the base class. Is it possible to do the same thing in 4.5 also

4.5, you don't exactly "set background".  You paint using drawTexturedPath (drawBitmap that draws a rectangle, but you want a rounded, so drawTexturedPath is suitable).  For more information on how to create the correct path and types of points for a rounded rectangle, look here;

Code of blackBerry to a rectangle rounded with gradient fill

This article, however, uses the net.rim.device.api.ui.decor methods, which are not available prior to 4.6. You need to replace it with their drawShadedFilledPath with your drawTexturedPath.  DrawTexturedPath settings should be as follows:

xPts, yPts, pointTypes - remove the above article

offsets - null (once again, as in the article)

xOrigin, yOrigin - 0, 0

DUX, dvx, duy, dvy - Fixed32.toFP (1), 0, 0, Fixed32.toFP (1) respectively (you do not rotate or scaling the bitmap, are you?  Hell, maybe you are - if you use fields of different heights.  Then look at the parameter dvy)

Bitmap - any Bitmap that you generate using suggestion of Hithredin.

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Question of Tablet pressure. Possible to set the pressure gradient color =?


    Not sure if this is possible, but here's what I would do:

    Tablet pressure equal to the gradient colors.

    If I put the primary and secondary colors. The lighter I caress the closest color.
    Example of
    Color A = Blue
    Color B = Red

    Stroke light blue =
    Blow hard = red
    Way races = purple

    That would make really quick rough colouring I think. Can it be done?

    (CS5 + Intuos 4)

    Thank you

    / EDIT: also is possible in Gradients to use more advanced settings? Instead of having just 2 colors and a hotline between them, could I make a curved line? It's not as important as the main issue.

    IE: Beginning at 100: 100, go to 95:90, 90:80, 85:70... etc. 00:00

    Instead of 100: 100, 90:90, 80:80, 70:70

    Hard to explain

    Sorry, neither of the two options are possible.

  • Z50-75: gradient colors, color banding, dark / dim display (display faulty?)

    I'm having a horrible gradient on my new Z50-75 problem. Everything else seems good, but the quality of the display is terrifying. I'm afraid that this is not an unprecedented case. Is it possible if this Lenovo would sell such a display in 2014? I literally counted the shades of colors. First I thought it was a software problem, I checked all possible settings, gamma, saturation, brightness, bitrate etc. but they all seem fine. They promote this laptop as a multimedia device; screen restores all features multimedia strains. The nuances in the 1080 p movies count? Please tell me it's fixable.

    Link to photo/image

    Mod comment: Over size photo converted to establish a link.

    25/03/15 EDIT: revised subject line to improve research opportunities. Amy_Lenovo

    31/03/15 EDIT: revised once 2nd topic. Amy_Lenovo

  • Evenly space the gradient colors

    Is there a way to distribute evenly or the color space when you create a custom gradient?

    The eye is so these little squares of color that are the same distance is really hard, when you create a gradient with lots of colors.

    Thank you.

    It should work in CS6.

    I saved it as a single text file with the .jsx extension.

    When I run the script in CS6 (file > Scripts > other Script (but you can install it as well in the Scripts folder))

    I get this:

    Good response from Moluapple;

    Grad var = app.activeDocument.gradients.add ();

    var so = app.activeDocument.swatchGroups [1] .getAllSwatches ();

    var l = sw.length;

    grad.gradientStops [0] .rampPoint = 0;

    grad.gradientStops [0] .midPoint = 50;

    grad.gradientStops [0] .color = .color sw [0];

    for (i = 1; i< l="" -="" 1;="" i++)="">

    stop = grad.gradientStops.add ();

    Sw [i] .color = Stop.Color;

    grad.gradientStops [i] .rampPoint = i / (l - 1) * 100;

    grad.gradientStops [i] .midPoint = 50;


    grad.gradientStops [l - 1] .rampPoint = 100;

    grad.gradientStops [l - 1] .midPoint = 50


    grad.gradientStops [l - 1] .color = sw [l - 1] .color;

  • Three vertical gradient color Muse

    Hi all

    I want to have a background gradient in Muse. I found there was a very simple way to do it, but I can choose only two colors.

    My client wants to have a three colored vertical gradient background, is it possible in Muse?

    The top should be black, black to turquoise in the middle and back to black again once downstairs.

    I know there is a way to add a picture to the background, but I think it will make my site very heavy and bulky to load, and it must stretch and shrink if browser varies in length and width.

    I have the HTML script for this kind of gradient, and I know that I can add an HTML element in Muse, but I don't know how it works for a background.

    I hope someone can help me!

    Thank you!


    Hello Sir,

    According to the guidelines of the muse works only two colors can be used to create a gradient. Although you can create Gradient in Photoshop using more than three colors and later versions, you use the image created in the Muse.

    Kind regards

    Nitin Kapila

  • 'globalisation' of gradient color in CSS


    I use in my CSS file, a sort of "global": definitions

    .root {}
    -custom-color: #666666;

    button {}
    -fx-background-color: color - custom -;

    as I tried to make a 'global' gradient as

    .root {}
    -custom gradient: #F8F8F8, linear-gradient(#F8F8F8 0%, #E4E4E4 50%, #CCCCCC 100%).

    I could not use this definition on my button (gradient did not appear)

    button {}
    -fx-background-color:-custom gradient;

    It is known, or I'm doing something wrong with the gradient?


    Ok. I see it now. The question is this. The parser knows not that - custom-gradient is a [,] *. He sees the hex-digit hash and analysis as a color and then jumps on the entrance, that he does not understand until it hits the semicolon. I'm surprised that the parser spits a warning "I don't know how analyze it".

    The solution is that you must specify your layers in the background color - fx - and have - custom-gradient be just one

        -custom-focus-color: #29420C;
        -custom-gradient: linear-gradient(#29420C 0%, #53801C 30%, #5E9718 100%);
    .button {
        -fx-background-color: -custom-focus-color, -custom-gradient;
  • Shapelayer gradient color value


    Is it possible to get color data (color, opacity, location, the orientation of the gradient) of a gradient in a shapelayer by script fill?


    I can get the property with:"ADBE_Vector_Graphic-G-Fill").property ("ADBE vector Grad colors");

    But its 'value' field has no real value. It contains an error.


    Sorry for the German screenshot.

    Any info would be greatly appreciated.

    Thank you!


    I don't have access to the right of the AE, so cannot check, but the value of the gradient is very probably type "custom value", so cannot be displayed. AE provides no script info/framework for this type of data.

    On your screenshot of the propertyValueType is 5212. To find out what he is pointing you can do:

    type var ="ADBE_Vector_Graphic-G-Fill").property ("ADBE vector Grad Colors") .propertyValueType, key;

    (key in PropertyValueType) if (PropertyValueType [key] = type) {alert (key); break ;};}

    You will probably receive an alert 'CUSTOM', in which case there is nothing you can do.


  • Identify the original text gradient color

    Hello everyone.

    I need to know how to remove a gradient of text so that it becomes a solid color. I don't know the original color and I have a deficiency of the color, so I need to go through the numbers or names.

    In any case, is it possible to simply remove the gradient of the text to make it solid, but the same "base" color



    If you open the gradient and the panels color chart you can click on the individual in the gradient stops, and if they were created from color chart that should underline the right shade, if you see not a shade highlighted, you can get the formula of color for the decision from the Panel of color instead.

    But this does not guarantee that gradient points have something to do with the solid color, you want to apply to your type. You can use colors that you like in a gradient and any solid color, you like for the text. Remember that if you use something other than 100% k or a spot color for the type you run the risk that it will be blurred, especially in small sizes and especially if the color is pretty clear. Process colors are mixtures of points and will not have the same crisp contours as type made 100% of a single color.

  • gradient color in a nonlinear geomerty

    Hi all

    I try got a gradient of color on the outside to the inside of this geometry


    the problem: the width of the gradient should be more or less the same in all areas of the Green geometry (refers to the entire spectrum of colors)

    And the gradient must go perpendicular from the outside to the inside.

    I ask a similar question a few weeks ago, but it looks like at least for me different

    Could someone help me with this problem?

    THX in advance


    In Illustrator

    (1) make the rectangles for the stripes of color

    (2) use object > blend > make the gradient

    (3) who chose to create a new Art Brush

    (4) apply this brush a path and then use the width tool to change the width of the desired regions

  • Replacing gradient colors in one Image to another

    I have two images that are logos of a game.  The Japanese version and the English version.  The Japanese version has a red theme degraded, while the English version has a green gradient theme.  I tried to find a way that I could replace the Green gradient with red degraded (so that the English logo is red) without making it look like the trash.  I tried various methods, including the color matching and trying to delete on the gradient and put it into my own, but I had no luck so this make even resemble half decent.  The Japanese version also has little yellow which I don't understand.  Only the Red gradient.

    Anyone here knows a good way to do it please?  Here are links to two images that I use:

    Thanks for any help!

    Well, you are simplifying the issue, it seems. Looks like you is not customize the color bars and all displacement around the master control. Of course, this will not give a correct result. You work in a selective way. Similarly, you probably need several adjustments, each limited to its specific lines, not one. This may include additional adjustments as the selective color on top of hue / Sat. Also try to work in different color modes. Sometimes a change of color work best in a laboratory.


  • Two radial gradient colors

    Imagine a radial gradient that goes from red to the center of transparant. Then cut it in half. Then on the bottom, I need to go from blue to the Center transparant. As radial. How do I do this in Illustrator? I want it to look as if it was all the same radial gradient... just red on top and blue on the bottom. I mocked upward in Photoshop below. But I want to know if I can do that in Illustrator. I couldn't understand it.example.jpg


    A simple way to do this might be:

    (1) create two full gradients above the other;

    (2) create a circle (at least) of the same size on the very top and remove half of it (direct selection up or down Anchor Point, press DELETE, then Ctrl / Cmd + J);

    (3) select the semicircle and the gradient of foreground and object > clipping mask > make.

    Edit: Hi Scott. 2 clipping masks?

  • Drawing of a shadow on a rectangle


    I try to imitate how the OS 6.0 includes a game options (see attachment). To do this, I got my FieldManager to draw a border line, but to make it more enjoyable, I have to draw a drop shadow. Any body have a code snippet that shows how to draw a shadow on a rectangle?

    Thank you


    Read this post entirely (the solution solves only part of the problem, but there are messages below that fill the missing details):

    gradient color in JDE 4.5

    I hope you get what you want from there.  If this is not the case, ask more questions.

  • The shade of gradient panel does not show the color added


    I'm puzzled and confused that there are 5 colors do not appear in the gradient Swatch Panel. I obviously dragged these colors in the color chart so that I can choose them when I used gradient tool. The screenshot is encircled with red for 5 colors, I added but not visible in the Panel gradient color. Any help is greatly appreciated.

    PraOlimpik Singlet.jpg

    When you drag the rectangle on the artboard in the swatches create you a shade of reason.

  • The transition between two objects with color gradient

    Oh no! I want to make a smooth transition between objects of gradient color, but you can see a line. How can I make a smooth transition? It is not a transparant-gum... Please help me!


    try to use a gradient instead of the net?

    You can use the path search tool to convert forms in one section, then gradient to create the dark lines where are the current limits.

    Or you can use "pen" one of them, to blend the overlap, but you may need to add the pen to a slightly larger copy of the object and your current border point to create a mask in order to keep the edges you want to stay strong and just leave an edge of more than in the other form.

  • Shade of color shows ONLY shades of gray on the gradient layer...?

    My color chart seems to be defaulting to only shades of gray on a gradient layer, and I can just find a way to let him replace the color I chose.  After that I created a new layer of gradient fill, when I have the layer selected in the layer list on the right side of the screen, color samples show ONLY gray.  If I click on the sample, it brings up the color selector, but no matter what color I select, the swatch shows shades of gray.  If I select the background layer, it goes back to show my color.

    There's probably a simple explanation to this problem, but I was searching Google for literally hours without finding an answer.  I found some similar questions have the response "go to Image, Mode, and make sure that RGB is selected."  Mine is already set to RGB, so it's not the question.

    How can I change the colors in a gradient fill layer, and why my color chart displays grayscale only when I selected gradient fill layer, even if by clicking on the color chart reveals the color picker?

    To change/edit the gradient colors, double click on the thumbnail of the gradient in the layers panel fill

    Then in the gradient fill box, click just to the right of the gradient word to change the colors

    In the gradient editor, click one of the stages of the color at the bottom of the gradient bar and click color to change the color of this judgment

    There is much more to the gradient to the room Editor to explain on the forum, so you can view the following for more information

    Photoshop elements help | Gradients

    Using Photoshop | Gradients

    The reason for which continues to show your color in levels of gray, is the layer mask is still active with adjustment layers in photoshop elements and layer masks are grayscale

    Photoshop elements help | Layer masks

Maybe you are looking for

  • Servece request 7296432

    Hello I need to programmatically change the name of the report (html) for my teststand sequence.  I use a reminder for the sequence ReportOption, and I'm passing a global station that is defined in the mainsequence.  However, it seems that the report

  • Orthographic corrector OE does not not after installing Word

    After formatting the drive, I installed Windows XP and its updates including SP 3.  Outlook Express spell check worked only in French.  I installed an older version of Word.  Now spellcheck OE will not launch even if it lists the English of the Unite

  • Empty optical drive is ejected at random (all 2-15 min)

    I'm having a problem with my laptop recently bought Studio 1535... Data sheet: Vista Home Premium (SP 1) (32-bit) Intel Core2Duo T5750 (2 GHz) 4 GB of RAM The problem is that every now and then I hear the optical drive ejection sounds, even if there

  • hp3070a unable to connect tp-link tl-wr541g

    Hello I would like to print from my android Tablet using my hp printer. The two devices are connected to the tp-link access point. I think I understood that the printer requires a device with wps technology to connect to the radio. I think that my ol

  • New novice computer owner

    Is this the right place for a novice computer person?