VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Tanner H (7 Submissions)
Category: Graphics
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (17 Votes)

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

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

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

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

No comments have been posted about Real-time Image Curves (using cubic splines) just like Photoshop. Why not be the first to post a comment about Real-time Image Curves (using cubic splines) just like Photoshop.

Post your comment

Subject:
Message:
0/1000 characters