Results 1 to 3 of 3

Thread: how fill a shape?

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,575

    how fill a shape?

    using the Polygon() we draw a shape.
    but what is the best function for fill, using an image, a Polygon?
    the CreatePatternBrush() is for HDC and not for Polygon POINTs.
    so what is the best for fill, using an image, a shape?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Lively Member Mikle's Avatar
    Join Date
    Oct 2009
    Location
    Tuapse, Russia
    Posts
    116

    Re: how fill a shape?

    Here is my function for filling single-color sections of any images in the array.
    A non-recursive algorithm is used, so there are high performance and no stack overflows .

    Fill.zip
    Last edited by Mikle; Sep 30th, 2022 at 10:46 AM.

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,575

    Re: how fill a shape?

    i need more than that and learn how to fill a polygon
    i'm doing it with other way... pixel- to-pixel(DIB's)
    but seems limited
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

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



Click Here to Expand Forum to Full Width