Warcraft Killed the Programming Star
cfimage
Not that I'm really a star, but its true... getting back into playing World of Warcraft has curbed the time I spend tinkering with stuff in the evenings. Expect more about Image.cfc soon though and the extended version which has my current batch of image effects and a few new ones.
Rounded Corners Code
cfimage,
CF8
A while back I mentioned that I had come up with some code to do rounded borders, but that I was holding it back as part of a larger release. Since then, I've not gotten as far with some of my other code ideas, and since I was asked nicely, I figured I'd release the code for rounded corners.
More
Image Object
cfimage,
CF8
Perhaps I've been overwhelmed by my recent reading on object-oriented design, but as I said in my last post, I thought an object that offered all the CF8 Image functions as methods of that object would be kind of nice. Despite the stumbling block of not being able to use onMissingMethod and Evaluate to create a solution, I applied a little brute force and hand coded it all. You can download it here:
Image.cfc
- Version 0.3
-
- Corrected for ImageDrawQuardicCurve() documentation errors (takes 7, not 9 as listed here).
- Added masks to allow Yes/No and On/Off inputs to be passed as simple boolean values (true/false)
I've tested the basics, but I wont guarantee that it is completely bug free. When I find additional bugs, I'll put out new versions. I'll also be using this object as the bases for a new EffectsImage.cfc that will hold things like the mirroring effect.
Evaluate()'ing a Function with "Nothing" Returned
cfimage,
CF8
So, I'm plugging away at some cool image effect stuff, and I decided that it would be nice to wrap all my image functionality into an object, and that it would be cool to try CF8's new onMissingMethod function to implement the built in function set as methods of this new object. The overall effect would be really nifty and fun to use, but I hit a big old snag; the Evaluate() function fails with "nothing" returned.
More
Transparent Background
cfimage,
CF8,
Java in ColdFusion,
ColdFusion
One of the big frustrations about CF8 image effects, is the lack of any way to get transparent writes or backgrounds. While most people think of transparent as just one more color, when you look at how Java handles pixels, you'll understand why Adobe didn't take the time to do this themselves.
More
Transparent Backgrounds for CF8 CFImage
cfimage,
CF8,
Java in ColdFusion
Can you create an image with a transparent background, but it takes creating some Java objects. I'll be posting the code as part of an image effects set, but you an follow the steps here to figure out how to do it.
Problems with Image Copying in CF8
cfimage,
CF8
I ran into an interesting problem with ColdFusion 8's image functions. I wanted to compare my image from before I added my effect, and my image after. Simple right? Well no, no its not. I'm doing my image manipulations in function, so I wanted to pass in the original image, and save the result to a new variable, but I kept coming out with two copies of the same image. It took me a bit, but I finally found a solution.
More
Testing YouTube Video content.
If it proves too annoying, I'll get rid of it.