Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Genesys Backend Genesys Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #334

Closed
Open
Created Sep 17, 2018 by Matija Obreza@mobrezaOwner

Tile server: alpha channel

Recoloring of tiles with color=ff0000 (red) parameter generates:

image

This is either because the original image (accessionDot0.png) does not have the alpha channel set correctly and uses opaque colors, or due to g2d.drawImage not averaging across all channels and the resulting image cannot be re-colored correctly.

Recoloring should only change the RGB channels from one color to another while Alpha channel needs to stay as-is.

Check org.genesys2.util.ColorUtil#changeColor if it correctly changes only the R,G,B channels. Alpha channel should not be modified.

There seems to be a problem with colors configured below, missing Alpha channel:

final int originalColor = MappingService.DEFAULT_TILE_COLOR.getRGB();
final int updatedColor = newColor.getRGB();
Edited Mar 25, 2019 by Matija Obreza
Assignee
Assign to
Time tracking