Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 838013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:14:07+00:00 2026-05-15T05:14:07+00:00

I have a VB6 application (please don’t laugh) which does a lot of drawing

  • 0

I have a VB6 application (please don’t laugh) which does a lot of drawing via BitBlt and the standard VB6 drawing functions. I am running up against performance issues (yes, I do the regular tricks like drawing to memory). So, I decided to investigate other ways of drawing, and have come upon OpenGL.

I’ve been doing some experimenting, and it seems straightforward to do most of what I want; the application mostly only uses very simple drawing — relatively large 2D rectangles of solid colors and such — but I haven’t been able to find an equivalent to something like a HatchBrush or PatternBrush.

More specifically, I want to be able to specify a small monochrome pixel pattern, choose a color, and whenever I draw a polygon (or whatever), instead of it being solid, have it automatically tiled with that pattern, not translated or rotated or skewed or stretched, with the “on” bits of the pattern showing up in the specified color, and the “off” bits of the pattern left displaying whatever had been drawn under the area that I am now drawing on.

Obviously I could do all the calculations myself. That is, instead of drawing as a polygon which will somehow automatically be tiled for me, I could calculate all of the lines or pixels or whatever that actually need to be drawn, then draw them as lines or pixels or whatever. But is there an easier way? Like in GDI, where you just say “draw this polygon using this brush”?

I am guessing that “textures” might be able to accomplish what I want, but it’s not clear to me (I’m totally new to this and the documentation I’ve found is not entirely obvious); it seems like textures might skew or translate or stretch the pattern, based upon the vertices of the polygon? Whereas I want the pattern tiled.

Is there a way to do this, or something like it, other than brute force calculation of exactly the pixels/lines/whatever that need to be drawn?

Thanks in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:14:08+00:00Added an answer on May 15, 2026 at 5:14 am

    If I understood correctly, you’re looking for glPolygonStipple() or glLineStipple().

    PolygonStipple is very limited as it allows only 32×32 pattern but it should work like PatternBrush. I have no idea how to implement it in VB though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple vb6 editor type application which has a richtextbox as the
I have VB6 application , I want to put some good error handling finction
I have a VB6 application that needs to update it's self. For this purpose,
I have a legacy VB6 application that was built using MSDE. As many client's
I have inherited a VB6/Access application that we have developed and sold for many
In a VB6 application, I have a Dictionary whose keys are String s and
I have a directory full of legacy code from a VB6 application. I have
I am doing some maintenance on a VB6 Windows application. I have a .Net
We have a modem terminal application written in VB6. It works great for what
I have a rather legacy application EXE written in VB6 and running on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.