VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Real-time Image Curves (using cubic splines) just like Photoshop

Tanner H  (7 Submissions)   Graphics   Intermediate   Wed 3rd February 2021

By request, here's another first of its kind in VB: a fast, accurate, real-time image curves dialog. (This should be familiar to the PhotoShop users among us :) Curves is similar in theory to my previous "Image Levels" post and standard gamma correction, but it provides a much more powerful interface for adjusting the luminance of an image. This project provides results very similar to Photoshop's, and it allows the creation of more spline knots (32 instead of 16). The cubic spline code on which I based my code was taken from Jason Bullen's excellent "Simple Cubic Spline Curve Plot" (https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=11488&lngWId=1).
The code is well-commented and very fast - please post comments, requests for future Photoshop-related code, and many heaps of praise (as this was a complicated routine to sort out...)! Update 2/May/07 - disable loading of icons and warn the user against loading very large images.

API Declarations
DIB sections

Rate Real-time Image Curves (using cubic splines) just like Photoshop (17(17 Vote))

Download Real-time Image Curves (using cubic splines) just like Photoshop

Real-time Image Curves (using cubic splines) just like Photoshop Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters