Parsi Coders
getpixel setpixel visual basic 6 - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Software Development Programming (http://parsicoders.com/forumdisplay.php?fid=37)
+--- انجمن: Visual Basic Programming (http://parsicoders.com/forumdisplay.php?fid=39)
+---- انجمن: Visual Basic 6 (http://parsicoders.com/forumdisplay.php?fid=44)
+---- موضوع: getpixel setpixel visual basic 6 (/showthread.php?tid=1861)



getpixel setpixel visual basic 6 - Amin_Mansouri - 02-28-2012

در سورس زیر کار کردن با api
getpixel
و
sexpixel
اشنا میشید یعنی کار کردن با چند api گرافیکی زیر :
کد:
Private Declare Function GetPixel Lib "GDI32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long) As Long
'Private Declare Function SetPixel Lib "GDI32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
Private Declare Function SetPixelV Lib "GDI32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Byte
بدست اوردن رنگ پیکسل ها و اعمال تغیرات در پیکسل ها
در سورس زیر میتونید یه تصویر ر.( روشنایی عکس) رو زیاد تر کنید.

سرعت این روش بالاتر هست چون با api کار میکنید.

توضیحات بیشتر :

کد:
'This simple project demonstrates how to adjust an image's brightness using the API GetPixel
' and SetPixelV API calls.  SetPixel is declared as a convenience - try it out if you wish.
' As a warning, this method is still slow, depsite being faster than PSet and Point
download source code :

.zip   VBGT_API_example(www.parsicoders.com).zip (اندازه 50.15 KB / تعداد دانلود: 15)


RE: getpixel setpixel visual basic 6 - salehi2010 - 03-01-2012

آقا واقعا دمت گرم. دست گلت درد نکنه