Brad Wood wrote:
> Wow, the 100 compression and Photoshop actually use about the same
> amount of unique colors (right under 8,000) but it's like the Java
> version uses no antialiasing.  It's all pixilated.

That's an interesting point.

I checked the image.cfc and I *AM* specifying anti aliasing in my 
rendering hints.

Maybe my renderingHints aren't working...

<cffunction name="getRenderingHints" access="private" output="false" 
returnType="any" hint="Internal method controls various aspects of 
rendering quality.">
        <cfset var rh = CreateObject("java","java.awt.RenderingHints")>
        <cfset var initMap = CreateObject("java","java.util.HashMap")>
        <cfset initMap.init()>
        <cfset rh.init(initMap)>
        <cfset rh.put(rh.KEY_ALPHA_INTERPOLATION, 
rh.VALUE_ALPHA_INTERPOLATION_QUALITY)> <!--- QUALITY, SPEED, DEFAULT --->
        <cfset rh.put(rh.KEY_ANTIALIASING, rh.VALUE_ANTIALIAS_ON)> <!--- ON, 
OFF, DEFAULT --->
        <cfset rh.put(rh.KEY_COLOR_RENDERING, rh.VALUE_COLOR_RENDER_QUALITY)> 
<!--- QUALITY, SPEED, DEFAULT --->
        <cfset rh.put(rh.KEY_DITHERING, rh.VALUE_DITHER_DISABLE)> <!--- 
DISABLE, ENABLE, DEFAULT --->

        <!--- NEAREAST_NEIGHBOR, BILINEAR, BICUBIC --->
        <cfif this.interpolation is "nearest_neighbor">
                <cfset rh.put(rh.KEY_INTERPOLATION, 
rh.VALUE_INTERPOLATION_NEAREST_NEIGHBOR)>
        <cfelseif this.interpolation eq "bilinear">
                <cfset rh.put(rh.KEY_INTERPOLATION, 
rh.VALUE_INTERPOLATION_BILINEAR)>
        <cfelse>
                <cfset rh.put(rh.KEY_INTERPOLATION, 
rh.VALUE_INTERPOLATION_BICUBIC)>
        </cfif>
        
        <cfset rh.put(rh.KEY_RENDERING, rh.VALUE_RENDER_QUALITY)> <!--- 
QUALITY, SPEED, DEFAULT --->
        <cfreturn rh>
</cffunction>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263299
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to