C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
Go Back  Xtreme Visual Basic Talk > > > C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2015, 12:05 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,293
Default C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?


is there anyway for do a faster GetPixel() and SetPixel() functions?
i'm learning DIB's, but DIB's are better for image pixel instead 1 by 1.
can anyone advice me more?
Reply With Quote
  #2  
Old 08-24-2015, 08:51 AM
BThunderW's Avatar
BThunderW BThunderW is offline
Administrator
 
Join Date: Nov 2011
Posts: 11
Default

My C++ is a bit rusty but using SetPixel and GetPixel is very inefficient as each call has to go through entire GDI stack. Instead use an basic 2 dimensional array to keep your graphics data and draw the whole array via a graphics call (I can't remember what the method is but it does exist). This also saves you using GetPixel since it's much faster to read from the array than from the graphics buffer.
Reply With Quote
Reply

Tags
dibs, faster, getpixel, image, setpixel, win32, cc++


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()? C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
 
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
C\C++ : Win32 - is there another way for do a faster GetPixel() and SetPixel()?
 
-->