Results 1 to 4 of 4

Thread: Loading friendChars in SCAR 3.15?

  1. #1
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Loading friendChars in SCAR 3.15?

    Wewt solution:

    SCAR Code:
    friendChars := LoadChars2(AppPath + '\Fonts\friendChars\');
      textBMP := CreateBitmapMaskFromText('TEXT', friendChars);
      if FindBitmapMaskTolerance(textBMP, x, y, 0, 0, x1, y1, x2, y2) then
      //do what you want when text is found

  2. #2
    Join Date
    Jan 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Load char from font? ehh wrong thing isnt that for fonts?
    there was another code, its in manual 1 sec

    function LoadChars2(path: string): Integer;
    Load font from folder in memory.
    Example:
    UpChars:= LoadChars2(AppPath + 'CharsRS22\');
    (If you are planning on creating your own character set, make sure bitmap images are named according to their ASCII codes.)

    function LoadCharsFromFont2(fontname: string; fontsize: Integer; fontbold, fontitalic, fontunderline, fontstrike: Boolean): Integer;
    Load characters from Windows font in memory.
    Example:
    c := LoadCharsFromFont2('Courier New', 10, False, False, False, False);

  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Solution found.
    See first post.

  4. #4
    Join Date
    Jan 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks man :P

Thread Information

Users Browsing this Thread

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

Posting Permissions

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