Results 1 to 7 of 7

Thread: TMufasaBitmap and Lape

  1. #1
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default TMufasaBitmap and Lape

    Simba Code:
    TMufasaBitmap.Create;
    Code:
    Exception in Script: Unknown declaration "Create" at line 11, column 7
    As the TMufasaBitmap seems to be empty in Lape, what is Lape equivalent of it?

    I need to export bitmap, in PascalScript I do something like this:
    Simba Code:
    tb : Tbitmap;
    tm : Tmufasabitmap;
    begin
        tm := GetMufasaBitmap(bmp);
        tb := tm.ToTBitmap;
        tb.Handle; // <- this is what I need
    end;

    Now, I don't know how to do it in Lape, I'm confused.

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    TmufasaBitmap isn't empty. There's just no intellisense for it(well at least in my simba there's none..
    What do you mean export? I doubt you can export anything from Simba. What do you need the handle for?
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    TmufasaBitmap isn't empty. There's just no intellisense for it(well at least in my simba there's none..
    What do you mean export? I doubt you can export anything from Simba. What do you need the handle for?
    I need to export (or send or whatever) bitmap from Simba to a plugin.

    What Simba version do you have? I've just downloaded newest Simba version. It has intellisense for TMufasaBitmap, but compiler doesn't know any method, so I think it's empty:

    Simba Code:
    program new;
    var Muf :TMufasaBitmap;
    begin
      Muf.FastReplaceColor();

    end.

    Code:
    Exception in Script: Unknown declaration "FastReplaceColor" at line 4, column 6

  4. #4
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Dgby got rid off all the 'fast' in Lape, so it's just ReplaceColor.

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Simba Code:
    var
      bmp: TMufasaBitmap;
      tbmp: TBitmap;
    begin
      bmp.init();
      bmp.setSize(50, 50);

      tbmp := bmp.toTBitmap();
      writeln(tbmp.getBitmapHandle());

      bmp.free();
      tbmp.free();
    end.

  6. #6
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Simba Code:
    var
      bmp: TMufasaBitmap;
      tbmp: TBitmap;
    begin
      bmp.init();
      bmp.setSize(50, 50);

      tbmp := bmp.toTBitmap();
      writeln(tbmp.getBitmapHandle());

      bmp.free();
      tbmp.free();
    end.
    Thanks!

    Also, do you know what happened to TFont ?

    Simba Code:
    var f:TFont;
    begin
    f.init();
    f.size := 12;
    end.

    Exception in Script: Unknown declaration "size" at line 4, column 2

  7. #7
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by bg5 View Post
    Thanks!

    Also, do you know what happened to TFont ?

    Simba Code:
    var f:TFont;
    begin
    f.init();
    f.size := 12;
    end.

    Exception in Script: Unknown declaration "size" at line 4, column 2
    set and get... I hate the syntax but its better than nothing i guess

    f.setSize(5).

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
  •