![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Additional Libraries Users contributed libraries. This sub-forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
And yet you seem to have become somewhat of an artist ![]() I hope that one day I have the abillity you've got to write whatever code takes your fancy ![]() Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
||||
|
Thanks for the compliment but not really. I distinguish imaging (as in manipulating photos. etc.) from graphics (as in designing and drawing original work). I've been interested in colour imaging on computers for years but totally lack the design flair and imagination to make graphics a worthwhile excercise.
|
|
||||
|
Hi Andrew,
Here is my feedback. Everything works fine on the desktop. On the device, the transitions are too slow. Say, a slide show runs in intervals of 5 seconds, while a transition takes longer than that, the show ends up in a plausible "out of memory exception". Actually, fading two images on an Image control is yet faster than fading on a form. The images to fade are stored in an ImageList: Fader1.NewFade(il.Item(0),il.Item(1), cBlack, true) Timer interval 20ms, Faded = Faded + 5 transition steps. Image sizes are 640 x 480px. The device, an iPAQ h2210, runs Pocket PC 2003. Your demo with the much smaller images performs acceptably smooth. Anyway, a fantastic approach, Andrew. I will experiment further and eventually find a compromise for the device. Keep it going ![]() Cheers Robert |
|
||||
|
Quote:
Quote:
Code:
*pixel3++ = (byte)((*pixel1++ * oldpercent + *pixel2++ * newpercent) / 100); ![]() |
|
||||
|
Hi Andrew,
Perfectly agreed, processing several steps in an array of 307,200 pixels in a matter of a second or so is a job for pure C programs. Your solution is fabulous for the desktop and smaller images in the device! I will shrink the images to QVGA. They will look fine on a VGA device screen. Thanks so much for your hard work. I really love the library as it is. And... you made it for me ![]() Cheers Robert |
|
|||
|
Quote:
But elsewhere, a complex expression like that might entail converting its terms to floating point for the calculation and back again if the assignment were to an integer. This would make it much slower than purely integer computation. Could this be implicated in this case? Regards, Mike. |
|
||||
|
No. Slots on the CLR evaluation stack are either 4 or 8 bytes wide. Depending upon the data types of the operands arithmetic operations are performed as Int32, Int64 or Double operations. Lesser types are promoted to one of these types when copied to the stack and demoted on storage.
In this case Int32 operations are used. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Door library (Beta) - Special library | Erel | Official Updates | 48 | 07-18-2008 03:33 PM |
| Fade sur une image | GallyHC | French Forum | 2 | 05-27-2008 01:01 PM |
| Desktop Videocam image capture library | agraham | Additional Libraries | 6 | 05-25-2008 11:00 AM |
| Image processing library | agraham | Additional Libraries | 13 | 01-27-2008 12:51 PM |
| Move an image inside an image control | Cableguy | Questions & Help Needed | 5 | 05-14-2007 08:40 PM |