Can you change the Arrays inside a ColorModel?

Is there a way to reset the rgb arrays in an indexColorModel without having to create a new color model.
I am creating an application that does color contrasting by changing the values in the rgb arrays in which I am creating a new colormodel each time the values change, but I would really like to simply reuse the color model I already have and avoid new object creation.
Thanks
Gina

I don't know how to do this with a color model.
I can help you, if you want use BufferedImage.
Buffered image=new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);
to create the image.
To have a color :
int rgba=image.getRGB(x,y);
Color col=new Color(rgba,true);
To draw :
Grahics2D g=(Graphics2D)image.getGraphics();
g.drawLine(x,y,x,y); // Draw a plot
g.setColor(c); //Cahnge the current color
I hope, it will help you

Similar Messages

  • Can you change the theme color in iMovie for example from its current color of blue to red?

    Can you change the color of a theme in iMovie ?- example: the sports theme is set to be blue and I would like it red.

    No. And that would be nice in your type of example.
    I would recommend that you could TRY to use the "Map, Background & Animatics" earth icon> (next to transitions tool tab), scroll down> add RED background, and ADD Transitions inside some. That might help your example out.
    Hope this helps. Cheers

  • Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?

    Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?
    Mostly it's to call in for radio contests. The Iphone is really good at making a quick call, but it seems to timeout after 15-20 rings. I realise this is a small thing, but free tickets is free tickets.
    Most commenst I see is abotu incoling calls, not outging.
    Thanks.

    No. You can't do this with any phone.

  • Can you change the DEFAULT VIEW of a published iCal to MONTH VIEW?

    Can you change the DEFAULT VIEW of a published iCal to MONTH VIEW? I use this for a vacation rental and people never ever ever ever need to see anything but the MONTH VIEW. I hate having to tell them to click MONTH view at the top of the page. Is there a way to force it to always appear in MONTH? Thanks!

    ddotcom,
    Welcome to Apple Discussions.
    Unfortunately no, but if they are repeat viewers why not tell them to change their view to "Monthly" using the "Preferences" button on that page?
    ;~)

  • How Can You Change the Look and Feel of Charts in OBIEE 11g

    How Can You Change the Look and Feel of Charts in OBIEE 11g?
    Edited by: user11973122 on Jul 18, 2012 12:13 AM

    Check these files
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\s_blafp\viewui\chart\dvt-graph-skin.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\views\dvtchart\obips.dvtchart.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\display\chartfontmapping.xml
    Pls mark correct or helpful if helps

  • How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

    How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

        DIVAB71,
    Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Can you change the background in music player or d...

    I have a N80
    Can you change the background imge to your own? or is there any skins for the app?
    or even beeter cn you display your album art on it?
    cheers
    My N80 is on Orange purchased in June 2006 firmware v 3.0617.06 03-05-2006
    Cheers
    Andy

    You can change the music player background image but you need to make a theme. You can do it on a website just do a search as i'm not aloud to put a link on here to the site, as there are some adult themes there that peeps have made, and fair does this site has kids coming on it to. But it can be done m8 as mine is changed but you carnt do it from in the phone buy just changing the image.
    Thx tingull
    Phone History: NK702, NK6210, NK6310i, SamyV200, SamyD500, LG U880, SE W800i, NK N80, and now NK N95

  • Can you change the description in contacts from iCloud\

    In contact can you change the description from "icloud" to a differant name?? I have several accounts and want them to have a unique name. Any Help?

    You mean in the Music App .... And you can't. You can only view songs in a list.

  • Can you change the extensions in Adobe Muse from .html to .htm?

    Can you change the extensions in Adobe Muse from .html to .htm?
    I'm updating an old site where the extensions for the pages were all.htm. This means that when I upload the site index.htm is not being over written by index.html.

    Hi,
    It is not possible to change the extension in Muse at the moment. You can export the site as HTML and change the extensions outside the Muse.
    Regards,
    Aish

  • How can you change the bubble color in the message app on the iphone 5

    How can you change the bubble color in the message app on the iphone 5?

    If you are having trouble reading your texts you can increase the font size until it becomes clear. Put in a feature request for the colour change though, it won't happen unless people ask for it.

  • How can you change the font size in the application and system headers?

    How can you change the font size in the application and system headers?  I searched the system and finder prefs to no avail.  Changing the screen density is not a good option.
    Thanks

    I downloaded Tinkertool.  Found the font section and increased the size of most selections.  The only thing that changed that I can see is the window label.  The apple line, bookmarks line, the tool bar in safari are all the same---font size of about 4.  Found the finder "show view options" but that didn't seem to change anything either.  I'll keep working.  Restarted all apps after changes as well.

  • Can you change the field names in the address book?

    Can you change the Pager field name to read 2nd cell?

    No.
    This add-on https://freeshell.de//~kaosmos/morecols-en.html allows you to modify the labels of the 4 custom fields of the contact card

  • Can you change the default font in an iPad mail account?

    I suspect you can't, but just checking: can you change the default font in an iPad mail account?

    There is no way to change the default font in the mail app. You can make the type larger by using the accessibility feature of larger text. Settings>General>Accessibility>Larger Text. There is an app that allows you to add fonts to the iPad, but I do not think this works with the built in iOS apps such as mail.
    You can check it out.
    https://itunes.apple.com/us/app/anyfont/id821560738?mt=8

  • Can you change the tab order in Muse forms?

    Can you change the tab order in Muse forms?

    Hi Rebecca,
    By tabs do you mean the form fields? If yes, then you can simply rearrange them by repositioning the other fields using mouse.
    However, the e-mails that are received on submission of the forms show the original sequence of the fields.
    Regards,
    Neha

  • Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Can you change the canvas size in AI CC . If so how? Not the artboard but the canvas behind it. I have a large cad drawing.

    Vandushia,
    The Workspace size is fixed, 16,384 points.
    I am afraid you will have to work in a suitable scale, which could be 1:2, 1:4, 1:10, or whatever is most convenient.

Maybe you are looking for

  • Problems with report using isql*plus

    Hi there, As the title of this topic illustrates, i'm having trouble dumping relevant data from columns of different tables. Using isql*plus, I have three tables appropriatly related. A 'course' table, 'student' and 'next_of_kin' tables. I have many

  • Where can I find a Havok tutorial?

    I want to write a virtual assembly program. I think maybe Havok is useful for me. But I can't find a tutorial. Where can I find a Havok tutorial? And where can I download the Havok xtra?

  • Recovering data from a newly formatted hard drive

    Has anyone had any experience with programs that recover data from a newly formatted hard drive?  There seem to be a lot of programs out there to do this, but, a) do they work, and b) which one worked best for you? 

  • How to Call Program? Thx

    I got a problem as follows: There is a application which has two frames, Frame1 and Frame2. Frame2 has a program to be executed. But normally, when run the application, only Frame1 will be called to run. Thus, here I would like to know how to run the

  • Toubles with Application 's folder

    when I install some new programs i find in Machintosh HD a new Application Folder. so I have 2 application Folders and I'm constrict to copy the new into the old. sometimes I have renamed Application Folder and I have substituted its Icon... it's pos