Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #334
Closed
Open
Issue 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