none
RGB/CYMK - Can it be parsed?

    Question

  • I have not programmed since the 1990s, but i just downloaded the free version of Visual Studio 2017 with all the goodies

    - my question is this -

    I want to program a simple, light weight, stand alone screen saver that uses the RGB pixel-level numerical values or CYMK pixel-level numerical values of a selected image to create a fractal. I need to parse this image without user input and do it automatically in a predefined pattern as specified from settings, which will allow the user to create different types of fractal designs based on the variables they specify and the source image they incorporate. The code must be able to pull specific pixel values of RGB/CYMK from program code specified cells and use their numerical values as a variable for the fractal. It must do this all in the background and only display the fractal once the program is launched.

    In essence, I need to know which part of Visual Studio I need to concentrate on learning to do this? Also, any hints as to what code blocks/commands would be used to further narrow my study would be helpful. Any info would be appreciated :-)

     

    Thursday, March 09, 2017 9:31 AM

All replies

  • Hi Animus Corpus,

    Welcome to MSDN forum.

    First, you could decide on which platform you want the application to run, for windows or mobile phone?

    Winform, WPF apps are for windows, and UWP app could run both windows and mobile phone.

    Pick a language you want to use, C#, C++ or other?  

    After above you could find the corresponding template in Visual Studio.

    I just happened to find a couple of samples of similar project for you to refer:

     https://www.codeproject.com/Articles/38514/The-beauty-of-fractals-A-simple-fractal-rendering

    https://www.codeproject.com/Articles/353651/Visualizing-Fractals

    Hope it helps.

    Best regards,

    Fletch


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Friday, March 10, 2017 9:15 AM
  •  I need to parse this image without user input and do it automatically in a predefined pattern as specified from settings, which will allow the user to create different types of fractal designs based on the variables they specify and the source image they incorporate. The code must be able to pull specific pixel values of RGB/CYMK from program code specified cells and use their numerical values as a variable for the fractal.

    Hi,

    do you want to create a Screensaver for the normal Desktop? If so, I *think* a WindowsForms application will do.

    https://support.microsoft.com/en-us/help/818359/how-to-create-a-screen-saver-by-using-visual-basic-.net-or-visual-basic-2005

    Bitmaps in WindowsForms can be "parsed" for color values with its Method GetPixel(). This returns a color from which you can extract the argb color-channel values.

    https://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel(v=vs.110).aspx

    For a fast implementation, using c# with pointers for direct memoryaccess of the Bitmap (locked) can do. In VB you also can lock the bitmap and copy its entire pixel-data to an array and then access this array.

    https://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata(v=vs.110).aspx

    Regards,

      Thorsten


    Friday, March 10, 2017 5:36 PM