Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / September 2003

Tip: Looking for answers? Try searching our database.

Drawing a picturebox pixel by pixel fast

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crirus - 25 Sep 2003 10:55 GMT
I have an array with values and for every value I assign a color that I want
to paint in a picture box.
The array si 1024x1024 or larger so I need a fast routine to do the job...
sure, the picturebox may be smaller than the whole bitmap

Can somone give me a hint?

Crirus
John Hornick [MSFT] - 25 Sep 2003 22:52 GMT
Hi,

> I have an array with values and for every value I assign a color that I want
> to paint in a picture box.
> The array si 1024x1024 or larger so I need a fast routine to do the job...
> sure, the picturebox may be smaller than the whole bitmap
>
> Can somone give me a hint?

Create a new Bitmap, LockBits() to get a pointer to the bits, and set
the image bits manually. Then UnlockBits() and set the picture box's
Image to the new Bitmap.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.
Crirus - 26 Sep 2003 10:41 GMT
In VB i need that

> Hi,
>
[quoted text clipped - 15 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Visit http://www.microsoft.com/security for current information on security.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.