Page 1 of 4 1234 LastLast
Results 1 to 40 of 125

Thread: MiniShop Pro

  1. #1

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    MiniShop Pro

    MiniShop Pro


    The purpose of this venture is to create a fully user-friendly and somewhat powerful image manipulator in VisualBasic 6. It started off by me needing a filtering application to clean up a picture, and since then it has grown into a full-blown app with over a dozen different effects to alter your picture.

    We will constantly be looking for new ideas as to what we can put in, and, as with any project, we will need people to hash the program to pieces as it grows to make sure we, the developers, haven't overlooked anything.

    Positions are still available for those interested, just PM me if you're interested in taking part in this project and tell me where you think you could be most beneficial.

    ~time


    The lineup:
    timeshifter - co-manager, assisting designer
    chemicalNova -General developer, co-manager
    eyeRmonkey -General developer
    wossname - End converstion into .NET
    dglienna - Technical reference



    Milestones/Objectives:
    Load the picture done
    Save the edited picture done
    Image filter done
    Lightening/Darkening done
    Solarize/Invert done
    Edge Detection done
    Smooth/Sharpen done
    Emboss done
    Gray Scales done
    Ripples done
    Automatic *.* to *.bmp conversions
    Color balance
    Gamma contrast
    Hue saturation
    Undo/Redo



    Any and all ideas are more than welcome, as well as suggestions for optimizing code.
    Thanks, and please enjoy the show!


    Get the latest version!
    Last edited by timeshifter; Nov 19th, 2005 at 03:41 PM.

  2. #2

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    chem, I'm having a nasty problem when trying to load the picture... I can't seem to figure out what it is. It's your sequence, so here's the fully merged program for ya.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: MiniShop Pro

    If you guys are ever interested in porting this to .Net give me a shout. There are significant optimisations available.

    Cheers.
    I don't live here any more.

  4. #4

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Will do. Thanks for the offer!

  5. #5

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Figured it out. It was trying to ReDim the loading array before it had the correct variables... Once that was figured out, everything else works as it should. chem says he's got some ideas for speeding the process up a bit, so here's the updated and fully functional version.

  6. #6
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: MiniShop Pro

    Great work timeshifter. I was wondering why chem had all those ASM image related things in his sig. I get it now.

    How long have you guys been working on this?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  7. #7

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    um... about five days...

    Hence why we have so few operations right now.

  8. #8
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    I've written a very l33t personal app that does these things
    it has convolution filters and many other things... give me a shout too
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MiniShop Pro

    I should get some credit there, for technical reference

  10. #10

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    You will, don't worry.. the more reference, the more credit.


    For anybody, if you have any ideas that aren't up there, please post them. chem and I will see what we can do with them.

  11. #11
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    do color balance, gamma contrast hue saturation etc
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  12. #12

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Good call. I'm kinda tryin to get over a little lump right now, but I'll hit it when I'm finished with that one.

    Tryin to make some prebuilt textures and stuff that the program will build for you... but why won't the save work?!?!?!/(^%)$(

  13. #13
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    undo redo
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  14. #14

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    That was very high on my list, but I can't really do that until I can save an image...

    Unless I were to build another array with every action... and then have the Undo button just rebuild the image based on the last array...

  15. #15
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    For undo redo, we could create a user control with a picturebox in it, and have an array of our own type which holds Memory DC's. When the user hits undo, an old memory DC (maybe a history of 5) is blitted onto the screen. Or we could do like proper photoshop and have a history bar thingy.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  16. #16
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Oh. I'm going to have a shower and start work on a bit level example..

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  17. #17
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    post a screenshot or something I dont have vb6
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  18. #18

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    This is the picture I generally use, since it's got so much variety that so far, everything has worked with it...

    chem, the Gray Scales seem to be a little three-track minded... (0,0.0),(128,128,128), and (255,255,255)... Maybe we should throw a little variety in there?

  19. #19
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    oh neat
    I'm not sure how you're doing you edge detection... but bottom line you end up with a convolution matrix. In case it'd be of use, here are the ones I used
    PHP Code:
    sobel
    //  1  2  1
    //  0  0  0  
    // -1 -2 -1


    Prewitt:
    //   1   1   1
    //   0   0   0
    //  -1  -1  -1

    Kirsch
    //   5   5   5
    //  -3   0  -3
    //  -3  -3  -3

    Roberts
    -1   0 
    0   1

    FreiChen
    // -1 -r2 -1
    //  0   0  0
    //  1  r2  1
    // r2 is square root if 2


    my own made up matrix
    //  1  1  1
    // -1  0  1 
    // -1 -1 -1 

    looks like a "defocus" effectMy own again I Think haha):D must credit if you use this:D
    //  1  1  1
    //  1 -7  1 
    //  1  1  1 


    Sharpen:
    //      -1 -1 -1     0 -1  0
    //      -1  9 -1    -1  5 -1
    //      -1 -1 -1     0 -1  0


    made up again
    Neat 
    "coal" like effect
    //        -1  8  0 -8  1
    //        2 -1 -1 -1 -2
    //        -1  0  6 -1  1
    //        2  0  0 -1 -2
    //        -1 -8  0  8  1 
    you could test how they look like if you use photoshop's convolution matrix (I think they call it "custom effect" in tehre? ugh cant recall)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  20. #20

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Download the program as soon as you get on VB... everything you can immediately see is done and ready for use.

  21. #21
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MiniShop Pro

    Maybe you could pop up a form with two sliders on it for min and max values?
    for those of us who don't like typing...

  22. #22
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MiniShop Pro

    Quote Originally Posted by timeshifter
    Download the program as soon as you get on VB... everything you can immediately see is done and ready for use.
    Package it up for him, and post it at YouSendIt.com for a week or so

  23. #23
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Hey Polite. I used Sobel and LapLace for the edge detection. All bar the LapLace used a 3x3 grid for the effect. I gave laplace a 5x5 grid for a better result.

    I've instead opted for the DIB section approach. I'll get timeshifter to whack up the code, and I'll change all of the routines the the DIB code..

    PS: I'll credit you for that filter

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  24. #24

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Lol... Here's what I have so far... If you can figure out what's wrong with the Flat Rock option, please post it... it's driving me insane, since I can't figure out what's going on with it...

  25. #25
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: MiniShop Pro

    TimeShifter, kind gesture?!? Want me to host it for you??
    My server is almost always up



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  26. #26

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    We've almost got a copy ready that'll function the way it will in the end... I'll take you up on that offer when we get it fully running... but it's 3 in the morning for me and i need some sleep.. just ask chem about that one...

  27. #27
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: MiniShop Pro

    Ok Ts



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  28. #28
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Ok. This version is alot faster. It uses DIB sections to perform the effects. The longest effect is smoothing, which takes 2 seconds on a 711x594 image. Sharpening is second at 1 second on a 711x594 picture. The rest take around half a second (timed using clsTimer from PSCode).

    I've begun making a brush tool to paint with, however I can't seem to figure out why the Y coordinates are buggered. If anyone can take a look at the DrawLightCircle function and tell me why that happens? You can see the problem by clicking and moving the mouse around a loaded picture..

    More to come...

    chem
    Attached Files Attached Files

    Visual Studio 6, Visual Studio.NET 2005, MASM

  29. #29

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    I'm putting the Help>About logo into a picture box instead of on the form.. hopefully that'll hold it better when the file gets transfered.

    I'll have a look at the brush tool if I ever get done duping all of the other subs... shouldn't take forever, but we do have a lot of stuff to work on...

  30. #30

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    MrPolite, what language did you use for your app?

  31. #31
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: MiniShop Pro

    Quote Originally Posted by timeshifter
    MrPolite, what language did you use for your app?
    it was the time when I was switching from vb to c# so it's half in vb half in C#

    all the user interface is in vb, and most the graphics functions are in C#
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  32. #32

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    If you can port the code into VB and post it, I'll see what I can do with interfacing it into MSP...

  33. #33
    Hyperactive Member
    Join Date
    May 2002
    Location
    Chicago
    Posts
    271

    Re: MiniShop Pro

    For the paint problem change this code:

    VB Code:
    1. With DIBInfo.bmiHeader
    2.     .biSize = 40
    3.     .biWidth = PicInfo.bmWidth
    4.     .biHeight = -1 * PicInfo.bmHeight 'this line has been changed
    5.     .biPlanes = 1
    6.     .biBitCount = 32
    7. End With
    Sometimes what you're looking for is exactly where you left it.

  34. #34
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Ah. Ta for that John. I actually solved it by doing this:
    VB Code:
    1. r = ImgData(1, x + dx, [b](PicInfo.bmHeight - y)[/b] + dY)
    2. g = ImgData(2, x + dx, [b](PicInfo.bmHeight - y)[/b] + dY)
    3. b = ImgData(3, x + dx, [b](PicInfo.bmHeight - y)[/b] + dY)
    I must have gotten the whole theory of the DIBs wrong. The way you posted, does that mean all the effects are being read bottom-top? Using your code, would they be top-bottom?

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  35. #35
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Just a little update:

    Thanks to the Help of Jacob, I've managed to get transparent brushes going (soft, and solid).

    I'm thinking for the features I want to put into this, the GUI isn't good enough. I'll work on a new GUI and post it up in a day or two.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  36. #36

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    I was actually gonna start workin on a toolbar GUI once my brain recovered from the frying of my last venture into that...

    By the way, we still need to chat about your subs... i need to know how to adjust the code to change either the base image or the current image, depending on the user.

  37. #37

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    Sorry about the delay... chem and I have both been working on school stuff, but now that the first big exam is over with for me, I'll start whipping up a new GUI that should agree with what we want to do in the end.

  38. #38
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Yes, indeed. My Web Design Assignment was a real annoyance, as I got it before everyone else, and had to hand it in with 10 times the stuff they have to. The price to pay for learning this stuff before school

    I've played around with my core drawing code, and I've been able to create solid and soft brushes, effect brushes (solarize and emboss so far), and a few more effect filters. I'm also certain I can create a Clone Stamp tool faily easily, and a function like Photoshops "Snapshot" ability without too much trouble.

    Hope to have a beta up within the next week or two.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  39. #39

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: MiniShop Pro

    I'd need icons to use for the toolbar.. should I just yoink them from Fireworks or Freehand (since I don't have Photoshop) or do you want to make a custom set?

  40. #40
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: MiniShop Pro

    Just "yoink" a few different ones from a few different places. So it doesn't all look like the one program

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width