Re: [cfaussie] CFIMAGE and transparent GIFs

2011-07-18 Thread Andrew Scott
As I said you can't use the tags and functions from this point, because it
will convert it back to an RGB image as that is all ColdFusion knows how to
deal with.

On Mon, Jul 18, 2011 at 7:24 PM, Steve Onnis  wrote:

> Can you do this and then pass this into the cfimage processing? Or will
> that just screw it up again?
>
> ** **
>
> *From:* Andrew Scott [mailto:andr...@andyscott.id.au]
> *Sent:* Monday, 18 July 2011 7:07 PM
> *To:* cfaussie@googlegroups.com
> *Subject:* RE: [cfaussie] CFIMAGE and transparent GIFs
>
> ** **
>
> Steve,
>
> ** **
>
> Here is what you can do for your scenario.
>
> ** **
>
> // Create an image object..
>
> Image = *CreateObject*("java", "java.awt.image.BufferedImage");
>
> ** **
>
> //Initialise image object..
>
> Image.init( *JavaCast*("int", width), *JavaCast*("int", height), *JavaCast
> *("int", image.TYPE_INT_ARGB));
>
> ** **
>
> From here you now have an object to do further processing with, it is
> complicated from this point onwards as you have to now go to the java docs
> for the classes to do what you need.
>
> ** **
>
> ColdFusion when it creates this image buffer will always do so with the RGB
> type, which can be a pain in the butt to say the least as you are finding
> out. I should also point out that you will not be able to use the ColdFusion
> image tags or functions from this point on without it converting it back to
> a normal RGB image type.
>
> ** **
>
> Feel free to contact me again or post in here if you need further
> assistance. 
>
> ** **
>
> ** **
>
> Regards,
>
> Andrew Scott
>
> http://www.andyscott.id.au/
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to cfaussie@googlegroups.com.
> To unsubscribe from this group, send email to
> cfaussie+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to cfaussie@googlegroups.com.
> To unsubscribe from this group, send email to
> cfaussie+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] CFIMAGE and transparent GIFs

2011-07-18 Thread Steve Onnis
Can you do this and then pass this into the cfimage processing? Or will that
just screw it up again?

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Monday, 18 July 2011 7:07 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] CFIMAGE and transparent GIFs

 

Steve,

 

Here is what you can do for your scenario.

 

// Create an image object..

Image = CreateObject("java", "java.awt.image.BufferedImage");

 

//Initialise image object..

Image.init( JavaCast("int", width), JavaCast("int", height), JavaCast("int",
image.TYPE_INT_ARGB));

 

>From here you now have an object to do further processing with, it is
complicated from this point onwards as you have to now go to the java docs
for the classes to do what you need.

 

ColdFusion when it creates this image buffer will always do so with the RGB
type, which can be a pain in the butt to say the least as you are finding
out. I should also point out that you will not be able to use the ColdFusion
image tags or functions from this point on without it converting it back to
a normal RGB image type.

 

Feel free to contact me again or post in here if you need further
assistance. 

 

 

Regards,

Andrew Scott

http://www.andyscott.id.au/

 

-- 
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] CFIMAGE and transparent GIFs

2011-07-18 Thread Andrew Scott
Steve,

 

Here is what you can do for your scenario.

 

// Create an image object..

Image = CreateObject("java", "java.awt.image.BufferedImage");

 

//Initialise image object..

Image.init( JavaCast("int", width), JavaCast("int", height), JavaCast("int",
image.TYPE_INT_ARGB));

 

>From here you now have an object to do further processing with, it is
complicated from this point onwards as you have to now go to the java docs
for the classes to do what you need.

 

ColdFusion when it creates this image buffer will always do so with the RGB
type, which can be a pain in the butt to say the least as you are finding
out. I should also point out that you will not be able to use the ColdFusion
image tags or functions from this point on without it converting it back to
a normal RGB image type.

 

Feel free to contact me again or post in here if you need further
assistance. 

 

 

Regards,

Andrew Scott

  http://www.andyscott.id.au/

 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



[cfaussie] CFIMAGE and transparent GIFs

2011-07-18 Thread Steve Onnis
Has anyone played around with this?

 

I am resizing a transparent GIF and it is resizing but the image is coming
through with the colors inverted and the transparency is all black

 

Any ideas?

 

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.