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

How to show the predeterminate palettes to the user vb.net

I want to do a form where the user can choose one of the predeterminated posible palettes to use in a Chart, how can i do that? i don't want the user to pick color by color with the colorDialog, but to choose the entire palette. And if it is posible…
lunicirus
  • 1
  • 1
0
votes
1 answer

How to construct indexed8 bitmap from pixeldata and palette

I am trying to create a 3x1 bitmap with a specified palette. For testing I used 3 colors: red, green and blue. When I run my code all I get is all red (which is the first color). This is my code public void CreateTestImg() { // List to store…
TizzyT455
  • 3
  • 3
0
votes
0 answers

Defining specific fill colours on barcharts in ggplot

I have a barchart using a palette in R but want to manually define my own colours so match the study groups in other software. I'd like Controls to be green and B - Treated to be blue. These are my 2 Study.Groups. Current code: E <- ggplot(diane2,…
0
votes
1 answer

JTattoo look and feel Java - What's happening exactly?

I downloaded JTattoo.jar for the look and feel of my application. However I am confused, is the look-and-feel concept a run-time issue (I will only see the JTattoo look and feel when I run the application but not on the Designer)?? or can I have the…
Saher Ahwal
  • 9,015
  • 32
  • 84
  • 152
0
votes
1 answer

Maintaining transparency with palette mode GIFs in Pillow

I am trying to take a GIF with a palette containing one transparency index and use Pillow to create cropped sub-images. However, when using the crop() method the results no longer are transparent. original =…
Taugosz
  • 55
  • 1
  • 6
0
votes
1 answer

Netbeans JSF Palette

Ok, I have been trying to find answer for two days now. I created new Web Application and added JSF framework to it. But when I opened a palette I can see only few tags to be dragged and dropped. I can see HTML, HTML Forms and JSF categories with…
Petr Beneš
  • 303
  • 3
  • 15
0
votes
1 answer

angular material custom palette toolbar font color

How can I change the text color of the toolbar by defining my own custom palette ? Or in general how can I set the color of the text ? app.config(function($mdThemingProvider) { $mdThemingProvider.definePalette('accent', { '50': '#FFEB3B', …
annika
  • 51
  • 1
  • 4
0
votes
1 answer

Troubles with using Palette with GridView

When implementing Palette with my GridView, I am having trouble with scrolling. Basically, here's the situation: Each one of the items in the GridView has a title bar and an Image that loads. Using the Palette, the title bar is supposed to change to…
Jack
  • 2,043
  • 7
  • 40
  • 69
0
votes
1 answer

Using palette for each element of a Cursor Adapter

Hello i would like to know how to assign a color for every relativelayout in a Cursor Adapter. I want palette to extract the colors of the album art and use those colors as background to a relative layout.Please help. public class AlbumAdapter…
0
votes
3 answers

Use All The Color Swatches In Palette

v7.palette to extract colors from images. now my problem is i am limited to only one swatch, and my question is how to get all the swatches allowing the palette to extract all the colors from the image and using that color .Please help N.B:…
0
votes
0 answers

Why is my bitmap palette null?

I have the following code: List colors = new List(); colors.Add(Colors.Red); colors.Add(Colors.Yellow); BitmapPalette palette = new BitmapPalette(colors); var bitmap = new WriteableBitmap( (int)width, …
Nick
  • 10,309
  • 21
  • 97
  • 201
0
votes
2 answers

fix range in colorbar palette in IDL

I'm working with IDL and I have an array like: intensity[360,13] containing entries whose values range from 0 to 60. The point is that I want to plot it in with a scale ranging from 0 to 100. However, if I do: im = IMAGE(intensity,…
urgeo
  • 645
  • 1
  • 9
  • 19
0
votes
2 answers

How to change shade of color dynamically android?

I'm using the Palette class to programmatically get the most dominant color from an image which I then want to use for my status bar and toolbar. According to the material design guidelines, the status bar color should be two shades darker than the…
akshayt23
  • 2,793
  • 3
  • 21
  • 29
0
votes
1 answer

How to add element into the palette view - IBM Mobile First 6.3

I am developing mobile apps using IBM Mobile First 6.3 with JQM. I need a clarification that, is there any option for adding element into the palette view and also can we create some variable with default value and keep it any view, so that when we…
sasi
  • 512
  • 4
  • 27
0
votes
2 answers

Using findSimilarColor to set a Background on Excel file

I'm having a little problem using the findSimilarColor on my java code. I already read some articles from the stackoverflow that helps me get to the following code. HSSFCellStyle style = wb.createCellStyle(); HSSFPalette palette =…
Gabriel Braga
  • 41
  • 1
  • 10