Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?

ImageLib

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2010, 01:42 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Thumbs down ImageLib

ImageLib Graphics leave much to be desired
Attached Files
File Type: zip Rotating_;-)_Circle.zip (4.5 KB, 11 views)
Reply With Quote
  #2 (permalink)  
Old 07-17-2010, 02:17 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required.

Michael
Reply With Quote
  #3 (permalink)  
Old 07-17-2010, 02:26 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by ceaser View Post
Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required.

Michael
Because He Can't!! He's not registered!!!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #4 (permalink)  
Old 07-17-2010, 02:31 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

OOPS!!

Monsterman, buy the program then all your problems are over!
Reply With Quote
  #5 (permalink)  
Old 07-17-2010, 02:58 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

Quote:
buy the program then all your problems are over!
Ofcause I will buy the license....not just yet.

Any good .exe examples of ImageLibEx??(Other than rotate.exe)
Reply With Quote
  #6 (permalink)  
Old 07-23-2010, 06:46 AM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Question

There is one more feature I'm missing in the ImageLib:
Bitmap.SetPixel(R,G,B | Color constant)
instead there is only ...SetPixel(Color as color)

May I know if such feature available in the ImageLibEx?
Reply With Quote
  #7 (permalink)  
Old 07-23-2010, 12:42 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

It's the same in ImageLibEx.
But you can use in both libraries.
Bitmap.SetPixel(x,y,RGB(R,G,B))
Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #8 (permalink)  
Old 07-23-2010, 04:51 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

Hello Klaus.
Quote:
Bitmap.SetPixel(x,y,RGB(R,G,B))
I have tried.....Can't figure the proper syntax.Can you help me out please?

Bitmap.GetPixel returns such values as
-1
-330010
-1457575
etc .They don't look like RGB
Reply With Quote
  #9 (permalink)  
Old 07-23-2010, 05:23 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Monsterman22 View Post
Bitmap.GetPixel returns such values as
-1
-330010
-1457575
etc .They don't look like RGB
As mentioned in the help file, Bitmap.GetPixel1 returns a color, not RGB values:
"Syntax: GetPixel1 (x As Int32, y As Int32) As Color"

You can convert a color to RGB with:
Code:
Dim Type (R,G,B) clr
clr() = GetRGB(
Bitmap.GetPixel1(x,y))
Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B)

specci48
Reply With Quote
  #10 (permalink)  
Old 07-23-2010, 06:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

What exactly do you want to do ?
Do you really need the R,G,B values and what for ?

You can use a variable for the color, like col
col = Bimap.GetPixel(x1,y1)

you can then use
Bitmap.SetPixel(x2,y2,col)

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
imageLib nicolasWhite Questions (Windows Mobile) 6 05-29-2010 11:07 AM
Is there a clear frontpanel in the ImageLib.dll tsdt Questions (Windows Mobile) 2 01-13-2010 10:18 AM
ImageLib & Getpixel - bugs or user errors? LineCutter Questions (Windows Mobile) 4 05-24-2007 05:05 PM
ImageLib example - BouncingSmiley Erel Code Samples & Tips 0 05-20-2007 07:49 AM
Missing ImageLib.dll specci48 Bug Reports 1 05-19-2007 05:50 PM


All times are GMT. The time now is 02:15 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0