[
https://issues.apache.org/jira/browse/SOLR-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neil Ireson updated SOLR-8197:
------------------------------
Affects Version/s: (was: 5.3)
> Make zero counts in heatmap PNG transparent
> -------------------------------------------
>
> Key: SOLR-8197
> URL: https://issues.apache.org/jira/browse/SOLR-8197
> Project: Solr
> Issue Type: Improvement
> Reporter: Neil Ireson
> Priority: Minor
>
> It would be useful to have transparent zero values so that I can overlay the
> image as a layer on a map.
> The change just requires altering two methods in SpatialHeatmapFacets.java as
> follows:
> {code}
> static void writeCountAtColumnRow(BufferedImage image, int rows, int c, int
> r, int val)
> {
> image.setRGB(c, rows - 1 - r, val == 0 ? 0 : val ^ 0xFF_00_00_00);
> }
> static int getCountAtColumnRow(BufferedImage image, int rows, int c, int r)
> {
> int val = image.getRGB(c, rows - 1 - r);
> return val == 0 ? 0 : val ^ 0xFF_00_00_00;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]