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 9216099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:20:44+00:00 2026-06-18T02:20:44+00:00

As per my project requirement, I wanted to create a brush which will give

  • 0

As per my project requirement, I wanted to create a brush which will give me a effect like oil/water painting.
Please find attached snaps of it. I’ve taken this snap from Microsoft Paint Application. Microsoft Paint provides different brushes and one of them is Oil Brush.

After keen observation, I noticed that the complete pattern used in microsoft paint is hard-coded. For every stoke(with any color) it gets repeated.

My requirement are flexible, either i can implement fixed brush style or it can be random pattern.

I wanted to know, which API to use so that my solid fill line will look like a oil paint or water color painting.

I’ve created a sample application which uses NSBezierPath to draw a path but NSBezierPath doesn’t have any functionalities using which i can provide such effects to it.

Regards
Omkar

  • 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-06-18T02:20:45+00:00Added an answer on June 18, 2026 at 2:20 am

    I solved it using NSColor class API

    NSImage* anImage; // Create an image with any brush pattern
    [[NSColor colorWithPatternImage:anImage]
    

    I created a small image say 25×25 out of a oil paint brush pattern created in MS Paint application and provided the path to anImage object.

    in drawRect before drawing the NSBezierPath I set the color using above image object.

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

Sidebar

Related Questions

I have a requirement to create Chart like this : http://sourceforge.net/projects/ecgtoolkit-cs/ I have to
I am createing my project on ios 6 but as per requirement the same
For a project where most queries on the database will include requirements like within
This project is being developed in python and django. As per my requirement I
As per project requirement we need to convert images from word document into bitmap
I can do them per-project (select project, Settings, Versions), but not globally. How do
i have added an sqlite libsqlite3.0.dylib into my project's resources as per given in
Per the documentation , String.Format will throw a FormatException if either (A) the format
As per my project I need to devide a string into two parts. below
We have a requirement to store 500 measurements per second, coming from several devices.

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.