BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: fast hue

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Maynard Philbrook
Guest





PostPosted: Sun Jul 20, 2003 5:07 am    Post subject: Re: fast hue Reply with quote



use the SCANLINE Pointer of the TBitmap..
and perform the code directly on the image memory,


Gipsz Jakab wrote:

Quote:
Hi!

I've looking for a very fast Hue which can be found in Photoshop.

I don't know how to write a fast one. I only could wrote a Hue which
converts each pixel
one by one rgb->hue (&modify something) ->rgb. This is VERY slow. Maybe
somehow is it possible to create
a Lookuptable or any trick?

Cheers
Zoltan Komaromy
www.komaromy.com


Back to top
Gipsz Jakab
Guest





PostPosted: Sun Jul 20, 2003 6:25 am    Post subject: Re: fast hue Reply with quote



Thank you but my problem is not that.
I use gr32 library with scanline. The bottleneck is the conversion
what I want to speed up somehow. I want HUE shift as fast as in
Photoshop.

Cheers
Zoltan


"Maynard Philbrook" <UseThis.jamie12 (AT) mindspring (DOT) com> az alábbiakat írta a
következo üzenetben news:3F1A2382.556F59 (AT) mindspring (DOT) com...
Quote:
use the SCANLINE Pointer of the TBitmap..
and perform the code directly on the image memory,


Gipsz Jakab wrote:

Hi!

I've looking for a very fast Hue which can be found in Photoshop.

I don't know how to write a fast one. I only could wrote a Hue which
converts each pixel
one by one rgb->hue (&modify something) ->rgb. This is VERY slow. Maybe
somehow is it possible to create
a Lookuptable or any trick?

Cheers
Zoltan Komaromy
www.komaromy.com




Back to top
Maynard Philbrook
Guest





PostPosted: Sun Jul 20, 2003 4:15 pm    Post subject: Re: fast hue Reply with quote



because the gr32 lib is using scanline does not mean its code is efficient.
if your going to shift the whole image then you simple get the pointer to the

starting line of memory which is the last line and then simple increment the
pointer until you reach the last value changing it on its way..
to determine the number bytes you need to round up to the nearest dword
boundry perline * numberof lines.



Gipsz Jakab wrote:

Quote:
Thank you but my problem is not that.
I use gr32 library with scanline. The bottleneck is the conversion
what I want to speed up somehow. I want HUE shift as fast as in
Photoshop.

Cheers
Zoltan

"Maynard Philbrook" <UseThis.jamie12 (AT) mindspring (DOT) com> az alábbiakat írta a
következo üzenetben news:3F1A2382.556F59 (AT) mindspring (DOT) com...
use the SCANLINE Pointer of the TBitmap..
and perform the code directly on the image memory,


Gipsz Jakab wrote:

Hi!

I've looking for a very fast Hue which can be found in Photoshop.

I don't know how to write a fast one. I only could wrote a Hue which
converts each pixel
one by one rgb->hue (&modify something) ->rgb. This is VERY slow. Maybe
somehow is it possible to create
a Lookuptable or any trick?

Cheers
Zoltan Komaromy
www.komaromy.com



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.