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
1
vote
1 answer

J2ME Palette Empty after Installing Oracle J2ME SDK and WTK

I need to develop a J2ME app. I've successfully installed Netbeans 7.4 (clean install) and followed the procedures outlined in the J2ME Install guide (https://netbeans.org/kb/docs/javame/quickstart.html#install). I downloaded the Oracle J2ME SDK,…
Rowan
  • 137
  • 1
  • 8
1
vote
2 answers

DirectX7 SetPalette always failed

I'm learning DirectX, I want to Bind a palette to the PrimarySurface, but the process always failed. I give my code below: #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_BPP 32 #define MAX_COLORS_PALETTE 256 #define…
Maple Wan
  • 61
  • 1
  • 8
1
vote
2 answers

Python (pygame): Get image color information?

My end goal is to find a color in an image (in this case white) and replace it with another color (based on certain circumstances). So, as a certain variable changes the white is replaced with a specific color. However, to get there I'm currently…
1
vote
0 answers

Palette empty in NetBeans 7.2.1 on Windows XP

I'm new to Java programming, I wanna develop small software for cell phones (Nokia Asha 200 at first). At first the Palette had some items, but as I downloaded Swing components, nothing is showing anymore. I already tried many solutions proposed…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
1
vote
1 answer

tapestry component for one to many mapping

I have similar to scale to biological classification. I am looking for a tapestry component that can link them faster. However I am limitied to tapestry 5.2.6. @Entity public class Species implements Serializable { private static final long…
nkvnkv
  • 914
  • 2
  • 12
  • 25
1
vote
1 answer

Create custom palette for WritableBitmap from 256 Colours

I have now been looking for almost an hour and just couldn't find an answer. I am currently working on a program that displays a custom image (using WritableBitmap) either in a gray scale or a colourscale with 256 predetermined colours. The input…
philkark
  • 2,417
  • 7
  • 38
  • 59
1
vote
2 answers

Edit LabVIEW palette sets automatically

I have a device driver I am installing to the user.lib folder, there are various .mnu files included in the driver. After I install my driver I need to go to Tools->Advanced->Edit Palette Sets... And create a new sub palette from the mnu file. Is…
Eamonn McEvoy
  • 8,876
  • 14
  • 53
  • 83
1
vote
1 answer

Why when I create new xml layout the control in palette change to old version of control in Android?

First I create my project that minSdkVersion="13" and targetSdkVersion="15". But when I create new xml for layout, the control of the Palette at the left side show the old version of control. And When it's launch in emulator(version 4.0.3) it's…
kongkea
  • 9,788
  • 12
  • 39
  • 49
1
vote
1 answer

How to export a image to act file

I'm trying to create a mini tool for my job. I'm using C# with Visual Studio 2010 to do that. Now I need to export an image to an act file. Following here, http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmappalette.aspx I…
Võ Quang Hòa
  • 2,688
  • 3
  • 27
  • 31
1
vote
1 answer

Quartz 2D draw PDF page with different color

I have a bunch of PDFs that I'm using as vector art in an app I'm writing. I'm using the CG Context command CGContextDrawPDFPage to draw the PDFs, and it's working great so far. A problem I've run into is that I would like to be able to modify the…
phosphoer
  • 433
  • 6
  • 16
1
vote
1 answer

tapestry palette with drag and drop option

I would like to know, if there is any simple way to make drag and drop palette in Tapestry 5 or two connected lists with drag an drop? I know how to do it in jQuery but I dont know hot to extract selected data from javascript to java when i do it in…
1
vote
1 answer

IntelliJ palette tool unavailable for Android

I've been trying to complete http://www.vogella.com/articles/Android/article.html#components in IntelliJ, my java editor of choice, but the palette tool seems to be unavailable. I know some of the other tools windows are only available after certain…
0
votes
3 answers

Is there a library for c++ (or a tool) to reduce colors in a PNG image with alpha values?

I have a PNG-Image with alpha values and need to reduce the amount of colors. I need to have no more than 256 colors for all the colors in the image and so far everything I tried (from paint shop to leptonica, etc...) strips the image of the alpha…
HardCoder
  • 3,026
  • 6
  • 32
  • 52
0
votes
0 answers

‘one more break’ error in sf plot. How to manipulate color palette for a continuous column in pal argument of sf plot function

I wonder why I the code below only works when I use 11 in the number of colors for hcl.colors function? Using other values caused an error must have one more break than colour. If I’d like to represent the data in 4 class, for instance, what should…
rez
  • 290
  • 2
  • 12
0
votes
0 answers

Create diverging color scheme for gt_color_box from GT package

I would like to modify the palette of the gt_color_box() function from the R package GT such that It can accommodate two scales: Numbers below and equal to zero (color1, color2) Numbers above 0 (color3, color 4) The code for the function is below…
tpscp
  • 49
  • 6