Results 1 to 2 of 2

Thread: Need help with some canvas stuff.

  1. #1
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with some canvas stuff.

    I am currently doing something like

    SCAR Code:
    DisplayDebugImgWindow(150, 150);
      canvas := GetDebugCanvas;

    and from there doing pixel work, but i need to actually use a findbitmap function on what i have on my canvas but I'm lost? also is there anyway to speed up canvas /debug window stuff?
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    If you need to preform color finding functions on the canvas, you would have to set it's DC as target using SetTargetDC();, just like you do with S.M.A.R.T. (SetTargetDC(SmartGetDC); ) .. But, I can't seem to find how to retrieve the debug canvas' DC.

    What you alternatively could do, is to save whatever is on the canvas, to a bitmap file, then load it into the memory, and then set the bitmap as a target DC, and finally make color finding searches on it. Just remember to re-set the DC back to normal when done.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Canvas Help.
    By skilld u in forum OSR Help
    Replies: 3
    Last Post: 07-10-2008, 09:18 PM
  2. Canvas
    By Negaal in forum OSR Help
    Replies: 7
    Last Post: 01-30-2008, 05:57 PM
  3. canvas
    By ~~Amur~~ in forum OSR Help
    Replies: 7
    Last Post: 01-02-2008, 06:05 PM
  4. My canvas is messing up...
    By Jason2gs in forum OSR Help
    Replies: 4
    Last Post: 06-14-2007, 08:09 PM

Posting Permissions

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