Thread: magnifier (painter tool)

  1. #1
    yacros
    Guest

    Arrow magnifier (painter tool)

    any ideas of how can I make this tool on my painter project made in Borland C 3.11?

  2. #2
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    if you could say in wich mode the painting program runs (resolution etc and with what method u color the pixel) then it would be much easier to answer your question

  3. #3
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    if you are able to use various resolutions, you can probably just lower the resolution (therefore making the images look bigger).

  4. #4
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    [quote]
    change resolutions
    [quote]
    i dont think thats a good idea. But its worth trying

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    1) Pick a magnification value.
    2) Pick a size for the "display area". This should ideally squares or powers 2, as should the magnification value.
    3) Multiply each pixel by the magnification.
    Code:
    [][]
    [][]    2x2 magnification
    
    [][][]
    [][][]
    [][][] 3x3 magnification
    
    [][][][]
    [][][][]
    [][][][]
    [][][][] 4x4 magnification
    
    And so on.
    Basicly, you just duplicate the exact same pixel color for more pixels. It should be a fairly trivial exercize if you already know how to work with graphics.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory Analyzer Tool
    By edesign in forum C Programming
    Replies: 9
    Last Post: 06-08-2009, 12:54 PM
  2. grep tool
    By George2 in forum Tech Board
    Replies: 7
    Last Post: 02-10-2008, 02:12 AM
  3. Looking for Code Analysis / Checking Tool
    By nvoigt in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-01-2007, 03:34 AM
  4. Source Code Analysis Tool?
    By Sereby in forum C Programming
    Replies: 4
    Last Post: 02-18-2005, 09:11 AM
  5. new online tool
    By iain in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-18-2001, 06:12 PM