Results 1 to 10 of 27

Thread: BGRABitmap tutorial

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I see. Well BGRABitmap depends on standard TCanvas, Gtk and LCL, and uses types from Graphics and GraphType units. So that would be much work to make a version for FPGUI. I'm not familiar with it nor with the way it accesses to graphics. So I will not do this, I guess. But if someone wants to try...

  2. #2

    Question

    I will see if I can make the FPCanvas work with FPGUI. Another question is how to get a pixel color by mouse click in 4th tutorial image?

    Something like this.
    Code:
    TPaintBox.Canvas.Pixels[Mouse.CursorPos.X,MouseCursorPos.Y]

  3. #3
    I would recommend you to save the bitmap as a variable in the interface section, and get pixel colors using BGRABitmap.GetPixel.

  4. #4
    Hello people,

    Just to notify that the 3D engine is finished. Well at least there could be some minor improvements, but it works great.

    Here is a screenshot :
    Attached Images Attached Images

Tags for this Thread

Bookmarks

Posting Permissions

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