Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / Visual Basic
Article

Visually alter colormatrix with 25 slidebars, application included

Rate me:
Please Sign up or sign in to vote.
2.42/5 (11 votes)
29 Jan 20072 min read 33.9K   1.2K   19   5
Learn colormatrix inside and out, demo displays color matrix built after manipulation 25 slidebars

    Introduction

     

    please extract application to c:\xtremephoto

    Project can work fromanywhere, but default photos are hard coded to c:\xtremephoto

  • I had a lot of help on this project, thanks to Michael Combs great article, I was inspired to create this tool so you can see exactly the impact of the color matrix on the color transform.  This mini-app has 25 trackbars to control every aspect of matrix... this will not do negative however.  It will control bars as (1-100)/100 giving a range of .01 to 1.  Unfortunately I dont think trackbars can go negative, and I only had so much time.

    Also includes a threshold and gama trackbar.

    Also please install in default directory because there is NO error code either.

    The app loads a foregrond and background image and allows overlays to test alpha transparencies.  It also creates a third "Altered" image.  This project was intended to help us all learn color matrix once and for all.  It will allow you to load your own images as well.

    The project shows the matrix array created so that you can enclude that in any project you might have, or and experiment on presets.

    I know there are lots of things you'll be missing, but I believe the object of a learning tool for color matrix has been met.

    I know you like to have the code, but there are code examples, I have provided some myself.  The project I am working on makes it difficult for me to release code.

     

    PS: 12/12/2007

    There is another project puvlished by Joe Pardue with a similar approach which I didnt stumble on until today,

     

    PPS: 12/12/2007

    I removed some code that I was concerned about and substituted, and published code for project today.  This code can be used freely and need not be stamped or marked in any way, the gray matrix was borrowed from Michael Combs article.

    Sample image Sample image

     

    I did later add Negative:  The Trackbars run 1-200 value, I set a translation table running from -1 to + 1 in .01 increments, the code translatetable(trackbar.value) allows trackbar equivalent of negative numbers.  The published code has not been updated, mostly because this is a subform in my main project and I havnt had the time to extract it.

  • Sample image

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    Web Developer
    United States United States
    Started in IT in 1959 working on Electronic accounting machines.

    Worked through wiring panels and card systems.

    1963-1965 USArmy
    1961-1975 Computer Supervisor Contental Can
    1975-1998 Data Force Incorporated - President
    1998-2006 IT Director Promotions Unlimited Corp
    2007 retired, project DesignLab(C)2007

    Design and concept rules, coding is a required evil


    Comments and Discussions

     
    GeneralMy vote of 5 Pin
    dim13127-Dec-10 23:16
    dim13127-Dec-10 23:16 
    GeneralMy vote of 1 Pin
    Dave Kreskowiak23-Feb-10 17:38
    mveDave Kreskowiak23-Feb-10 17:38 
    QuestionWhy setup ???? Pin
    re-flex17-Jan-07 20:58
    re-flex17-Jan-07 20:58 
    AnswerRe: Why setup ???? Pin
    dmm1217-Jan-07 22:29
    dmm1217-Jan-07 22:29 
    AnswerRe: Why setup ???? Pin
    dmm1219-Jan-07 13:10
    dmm1219-Jan-07 13:10 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.