Sign in to follow this  
Followers 0
cowboy

slice in my picture JPG/PNG/BMP

6 posts in this topic

Hi

Simple questions again

Ok now I need to finde something on my picture .

What should I use instead of image search ??

And finaly I would like to slice It.

And save it .

Share this post


Link to post
Share on other sites



Ok

I have a full desktop screen picture 1600 x 900 and I would like to cut the Skype / 1500,250,1364,718/ from the pic and save It and set It as a background.

Share this post


Link to post
Share on other sites

Ok

Thats what I need.

Thank You

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ok now I need to finde something on my picture .

If its a image you may try

"GdipBitmapGetPixel"

Here is the Code of the Function Someelse COded this (im not remembering)

; #FUNCTION# ====================================================================================================================
; Name...........: _GDIPlus_BitmapGetPixel
; Description ...: Gets the color of a specified pixel in this bitmap
; Syntax.........: _GDIPlus_BitmapGetPixel($hBitmap, $iX, $iY)
; Parameters ....: $hBitmap - Pointer to the Bitmap object
;                 $iX  - The X coordinate of the pixel
;                 $iY  - The Y coordinate of the pixel
; Return values .: Success    - Returns the pixel color of the bitmap
;                 Failure     - 0 and either:
;                 |@error and @extended are set if DllCall failed
;                 |$GDIP_STATUS contains a non zero value specifying the error code
; Remarks .......: None
; Related .......: _GDIPlus_BitmapSetPixel
; Link ..........; @@MsdnLink@@ GdipBitmapGetPixel
; Example .......; Yes
; ===============================================================================================================================
Func _GDIPlus_BitmapGetPixel($hBitmap, $iX, $iY)
Local $aResult = DllCall($ghGDIPDll, "uint", "GdipBitmapGetPixel", "hwnd", $hBitmap, "int", $iX, "int", $iY, "uint*", 0)
If @error Then Return SetError(@error, @extended, 0)
$GDIP_STATUS = $aResult[0]
Return $aResult[4]
EndFunc   ;==>_GDIPlus_BitmapGetPixel
Edited by PhoenixXL

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0