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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

ImageLibEx library

Reply
 
LinkBack Thread Tools Display Modes
  #171 (permalink)  
Old 07-17-2010, 06:44 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,
For the 3 point arc, have a look here post @22
http://www.basic4ppc.com/forum/quest...int-arc-2.html

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #172 (permalink)  
Old 07-17-2010, 10:50 PM
sitajony's Avatar
Basic4ppc Veteran
 
Join Date: Mar 2010
Location: France
Posts: 416
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi, I used AlphaBlend() in coredll but it return an image with a black border so I would try with this library but I don't understand how use it? It return always an error like "Exception", "NotImplemented..." Is right that we can finally draw an image correctly with the Alpha value from a PNG Image on an image? If yes how do it?
Thanks for your replies!
Reply With Quote
Old 07-17-2010, 10:58 PM
sitajony
This message has been deleted by sitajony.
  #173 (permalink)  
Old 07-18-2010, 10:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Are you trying so use ReadAlphaData on a device? From a comment in the ImageAlpha.sbp demo

' make the alpha data file on the desktop, throws a NotImplemented exception on the device

That demo shows you how to do it. The alpha data file must be made on the desktop as devices can't read alpha values in png files.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #174 (permalink)  
Old 07-18-2010, 10:31 AM
sitajony's Avatar
Basic4ppc Veteran
 
Join Date: Mar 2010
Location: France
Posts: 416
Awards Showcase
Beta Tester 
Total Awards: 1
Default

But how do by example W**bar Ad*ance Des*top and some others softwares? There's surely an other soluce to get the alpha value... I'm searching...
Reply With Quote
  #175 (permalink)  
Old 07-18-2010, 10:45 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

They are probably not .NET apps and have their own native code functions to do it. The Compact Framework does not support alpha values in bitmaps.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #176 (permalink)  
Old 07-18-2010, 03:18 PM
sitajony's Avatar
Basic4ppc Veteran
 
Join Date: Mar 2010
Location: France
Posts: 416
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I found how get the alpha value... In fact I use OpenNETCF and it works great...
This is an example with transparency by pixel and transparency by Alpha value:

It's a really better...
Not computer needed, just type withalpha((Bitmap) Support, (String) Image File, (Int) X, (Int) Y, (Int) Width, (Int) Height) and it return the pasted image with the gif/png...
Hum I don't know if I can post my lib coz it's not really my lib, I use an other API (in OpenNETCF) so I don't know...
Attached Images
File Type: jpg capture1.jpg (14.3 KB, 111 views)
Reply With Quote
  #177 (permalink)  
Old 07-20-2010, 02:22 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Version 2.2 now posted includes an additional DrawerEx method. DrawArc3 takes three points, calculates the centre and radius of the circle that encloses all three points and draws the arc of that circle that connects those three points. Some parts of the algorithm used bear a remarkable similarity to that in a Basic4ppc program previously posted by Klaus who also supplied the raw equations to implement.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #178 (permalink)  
Old 07-21-2010, 08:16 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Thank you very much Agraham
Reply With Quote
  #179 (permalink)  
Old 09-10-2010, 10:00 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Ai Andrew,

I have noticed that with the RotateHQ function there are pixels that don't have the right fillcolor.

The attached program and the pictures below show the problem.

This doesn't happen with the RotateFast function.

Could you please have a look at it.

Thank you in advance and Best regards.
Attached Images
File Type: jpg RotateHQ.jpg (15.9 KB, 17 views)
File Type: jpg RotateFast.jpg (15.9 KB, 18 views)
Attached Files
File Type: zip RotateNeedle.zip (17.0 KB, 10 views)
__________________
Klaus
Switzerland
Reply With Quote
  #180 (permalink)  
Old 09-10-2010, 10:31 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It's a transparency issue. Because RotateHQ achieves the higher quality by a weighted interpolation of the colours of the four original pixels that cover the block where the rotated pixel is to be positioned and because the colour values are integers and the weighting factors are not there will be a final rounding effect on the final colour value. In this case that is varying the needle background colour from the transparent value that you are using.

In this case you could minimise the effect by chopping off the white extension to the needle on the bitmap and calulating an appropriate x and y offset to position the rotated needle at the centre of the dial. Using a less obvious transparent colour, such as mid-grey, might also be beneficial.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
ImageLibEx? agraham Basic4ppc Wishlist 2 11-05-2007 02:15 PM
ImageLibeX Error XerVision Questions (Windows Mobile) 8 08-27-2007 07:14 PM


All times are GMT. The time now is 02:13 AM.


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