Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, October 25, 2009 10:55:28 PM(UTC)

Ayman  
Ayman

Groups: Registered
Posts: 3


Hello every body,

I'm new here, and I'm a beginner in C++. I don't know if this is the right place to post my question [^o)], which is:

How to deal with the image's pixel to swap it's location with different pixel? 

Note:
I'm using C++ Builder5 <---[:S] Is it good to use in this area?

BR
Ayman
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 26, 2009 5:17:33 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Ayman,

Are you using any of LEADTOOLS products?
If yes, which LEADTOOLS version (15, 16, etc.) and programming interface (.Net classes, API C DLL, C++ Class Library, etc.) are you using?

Do you mean that you want to get the color of a pixel and swap it with a different pixel? If yes, and you are using our C DLL API functions, you can use the L_GetPixelColor function to obtain the 2 pixel colors and save them into 2 COLORREF variables. Then you can use L_PutPixelColor function to change the color values of the 2 pixels by swapping their values from the 2 COLORREF variables you saved earlier.

If you mean something else, please provide me with more details about what exactly you are trying to accomplish.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Monday, October 26, 2009 7:01:44 AM(UTC)

Ayman  
Ayman

Groups: Registered
Posts: 3


hello Maen

thanks a lot for ur replay

- no I'm not using LEADTOOLS!!

- Yes that was my idea exactly, would u please tell me how to get these tools and can I use it with C++ builder 5?
 
#4 Posted : Tuesday, October 27, 2009 3:11:41 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Ayman,

You can use our LEADTOOLS C DLL or C++ Classes with Borland Builder.
We have functions that enable you to load, display and manipulate pixels in images (bitmaps).
For example, you could use the following LEADTOOLS functions:
- L_LoadBitmap: loads almost any type of raster image such as BMP, GIF, TIFF, JPEG and many more.
- L_GetPixelColor and L_PutPixelColor which I mentioned before.
- L_SaveBitmap: saves the image after changing it if you want.
You can also display the images using our L_PaintDC function.

If you would like, you can download the free evaluation version of LEADTOOLS v16.5 from the following page:
http://www.leadtools.com/Survey/WebEvalSurvey.asp?category=Raster

After downloading and installing the setup, you can find a C builder demo that uses C DLL functions on the following folder:
[LEADTOOLS 16.5]\Examples\CBuilder\LoadSaveDemo

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Tuesday, October 27, 2009 3:31:30 AM(UTC)

Ayman  
Ayman

Groups: Registered
Posts: 3


Maen,

Thank you very much, it's really helpful information. I'll try what you said and see what I can do, and I'll get back to you with the result "or some questions" :)

Many Many thanks!!

Off-topic:
May I know where are you from and how can I contact you?

 
#6 Posted : Tuesday, October 27, 2009 3:57:09 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

The company is headquartered in Charlotte North Carolina. You can contact me at support@leadtools.com.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.184 seconds.