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

entryImageA 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

entryImagePerhaps 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.

Calendar

Sun Mon Tue Wed Thu Fri Sat
  12345
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31   

Subscribe

Enter your email address to subscribe to this blog.

Archives By Subject

Ajax (1) [RSS]
BlogCFC (2) [RSS]
CF8 (8) [RSS]
cfimage (7) [RSS]
ColdFusion (15) [RSS]
css (5) [RSS]
frameworks (9) [RSS]
Funny (2) [RSS]
Google (1) [RSS]
IIS (1) [RSS]
Java in ColdFusion (4) [RSS]
javascript (7) [RSS]
Licensing (2) [RSS]
Model Glue (2) [RSS]
Projects (3) [RSS]
Prototype (2) [RSS]
Spry (1) [RSS]
SQL Server (2) [RSS]
User Interface Design (1) [RSS]
Web Services (1) [RSS]

RSS