Class SVGColorProfileElementBridge

    • Constructor Detail

      • SVGColorProfileElementBridge

        public SVGColorProfileElementBridge()
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'colorProfile'.
        Specified by:
        getLocalName in interface Bridge
      • createICCColorSpaceWithIntent

        public org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent createICCColorSpaceWithIntent​(BridgeContext ctx,
                                                                                                         org.w3c.dom.Element paintedElement,
                                                                                                         java.lang.String iccProfileName)
        Creates an ICC_ColorSpace according to the specified parameters.

        If a color profile cannot be located an error message will be sent to the user agent and the method returns null. In this case, Batik will later fall back to sRGB.

        Parameters:
        ctx - the bridge context to use
        paintedElement - element on which the color is painted
        iccProfileName - name of the profile that should be loaded that could be a color-profile element or an @color-profile CSS rule
        Returns:
        the ICC color profile (or null if the color profile could not be located)