Questions tagged [palette]

A helper class of Android to extract prominent colors from an image.

A helper class to extract prominent colors from an image.


Palette is an Android feature to support the developer to create a MaterialDesign feeling by generating a colorset of appropriate looking colors based on a bitmap source (app-icon e.g.).

Reference

359 questions
0
votes
1 answer

Why this color conversion maps to gray so often?

I want to convert the RGB Color to an indexed color, here is my code, it works. But although some colors are converted to blue or red, but others that look like blue or red got converted to gray. How to fix this? You can check my snippet, click the…
exebook
  • 32,014
  • 33
  • 141
  • 226
0
votes
1 answer

How I can create a addition Tree Editor with GEF?

I have a graphical editor with GEF. It's possible to add objects from a palette. An Example what I mean is…
Sabine
  • 1
  • 1
0
votes
1 answer

How to set the Tool Palette component icon for my component in Delphi 2009?

I've read THIS but it's for Delphi 7 and it's not working in 2009. There are a lot of changes between this two versions. In D7 icons are 24x24, in D2009 icons are 16x16... and in D2009 there is no Image Editor for resorces... I have a unit…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
0
votes
1 answer

How to refresh the Palette

i have follow THIS GUIDE for create a Palette in my Netbeans Platform application (Using Explorer Views to View Data). Now, the Palette is shown but i want refresh it with new elements. I have tryed to re-associate the Lookup, change the RootNode…
Tirrel
  • 778
  • 2
  • 7
  • 23
0
votes
0 answers

Why database palette is not supported in Eclipse?

My Eclipse: Kepler When using Eclipse I am not able to use the Palette Database? Why i don't see database palette in the Eclipse? But it is present in Netbeans.
Digicom
  • 154
  • 1
  • 2
  • 12
0
votes
3 answers

How can i change control palette (2.3) to new 4.0.0 in Android

I started developing an application on api level 2.3 (2 years ago), now i change the targetSDKVersion to 14 because i'd like to update the look of application. I set: project.properties --> Taget= android-14 manifest …
0
votes
1 answer

Best way to create Image from palette Color array + indice byte array?

I'm developing a Java component for displaying some videos and for each frame of the video, my decoder gives me a Color[256] palette + a width*height bytes pixel indices array. Here's how I create my BufferedImage right now: byte[] iArray = new…
user2711115
  • 457
  • 3
  • 18
0
votes
2 answers

How to make a grid of colours that can be selected?

How do I make a kind of grid with colours that can be selected and be saved to a field on selection? Like in the chat options in Twitch.
Eruhen
  • 25
  • 7
0
votes
1 answer

Create a logarithmic diverging color palette for a treemap in R

I have data that span several orders of magnitude (-10e-9 to 10e+9). I am displaying them on a value treemap, but I want more control over the colors used. I assume I would want to use the "manual" treemap type, but I have not had much luck with the…
0
votes
1 answer

iPhone context: How do i extract palette information from an image?

Hi everybody: i want to take a picture and retrieve the main color analyzing its palette (i think this should be the easiest way), but i don't know really where to start.
0
votes
1 answer

How to use Imagick php to generate a bmp file with a palette offset

I'm trying to use Imagick via php to generate a 8bit bmp from jpg. But i would like the pixel colors to start at index 16 rather than 0. The code below shows how to generate the bmp in the correct format i need, but the palette index defaults to…
0
votes
1 answer

Wicket - Sort items in a Palette

i'm looking for a hint how to sort a palette. 1) Sorting the selected items (for example alphabetical): When you select an item from the left side and add it to the right side, the right side should be sorted on every change. 2) If you remove items…
JustTheAverageGirl
  • 2,973
  • 4
  • 17
  • 18
0
votes
0 answers

How to set a palette to avoid stretching to a high value

I am plotting a pm3d map and using a colour palette. However when using the colour palette I'm finding that stretching to a couple of high values causes the palettes colour to spread, so that differences in the plot cant be identified and is…
RobBalmbra
  • 58
  • 8
0
votes
2 answers

Display HEX Value for color palette of images

Please refer to www.granjacreativa.com/damepaleta after you drag an image into the box, we show the dominant color as well as the color palette. How do I display the HEX value for each of the colors displayed? I want to display them under the color…
0
votes
1 answer

Delphi XE5, how do I get frames defined in a package into th component palette

2 things are my problem 1) a have a TMyframe=class(TFrame) defined in a package, but this frame is not listed in the frame palette. So I registered my class from a designtime package using several methods none of which appeared to do what I want.…
H.Hasenack
  • 1,094
  • 8
  • 27