Image scaling
-
Can anyone direct me to a source that explains ways to code 'zoom ins and outs'? What I basically need is an algorithm to blow up or shrink down an image by clicking a button or, better, by rubberbanding an area of the image. Thanks, Ralf. ralf.riedel@usm.edu
-
Can anyone direct me to a source that explains ways to code 'zoom ins and outs'? What I basically need is an algorithm to blow up or shrink down an image by clicking a button or, better, by rubberbanding an area of the image. Thanks, Ralf. ralf.riedel@usm.edu
Just type cximage in search box it will take you to the project which does all this and more
-
Can anyone direct me to a source that explains ways to code 'zoom ins and outs'? What I basically need is an algorithm to blow up or shrink down an image by clicking a button or, better, by rubberbanding an area of the image. Thanks, Ralf. ralf.riedel@usm.edu
StretchBlt is all you need. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
StretchBlt is all you need. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Christian Graus wrote: StretchBlt is all you need. But it's non-intelligent in its operation as it doesn't resample the image but merely cuts pixels off or blows pixels up. CxImage[^] gets my vote. -- Dad, how strange it is that the pig can speak.
*thoughtful pause* It must have lost its "oink".
(my 3-year old daughter Moa, while watching Babe) Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams) -
Christian Graus wrote: StretchBlt is all you need. But it's non-intelligent in its operation as it doesn't resample the image but merely cuts pixels off or blows pixels up. CxImage[^] gets my vote. -- Dad, how strange it is that the pig can speak.
*thoughtful pause* It must have lost its "oink".
(my 3-year old daughter Moa, while watching Babe) Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams)Johann Gerell wrote: But it's non-intelligent in its operation True, but we're assuming that this guy needs the complexity that comes from adding another class to his project ( not saying that CxImage is hard to use, I've not looked at it ). If you set the right stretch mode, StretchBlt gives reasonable results, why uses a jack hammer to nail in a tack ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Johann Gerell wrote: But it's non-intelligent in its operation True, but we're assuming that this guy needs the complexity that comes from adding another class to his project ( not saying that CxImage is hard to use, I've not looked at it ). If you set the right stretch mode, StretchBlt gives reasonable results, why uses a jack hammer to nail in a tack ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Christian Graus wrote: If you set the right stretch mode, StretchBlt gives reasonable results Well, I develop for CE, where the stretch mode can't be set (it's carved in stone). Christian Graus wrote: why uses a jack hammer to nail in a tack That's often the normal scenario when dealing with CE's limited API set. Anyway, the resampling code can easily be broken out from CxImage and be used separately. -- Dad, how strange it is that the pig can speak.
*thoughtful pause* It must have lost its "oink".
(my 3-year old daughter Moa, while watching Babe) Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams) -
Christian Graus wrote: If you set the right stretch mode, StretchBlt gives reasonable results Well, I develop for CE, where the stretch mode can't be set (it's carved in stone). Christian Graus wrote: why uses a jack hammer to nail in a tack That's often the normal scenario when dealing with CE's limited API set. Anyway, the resampling code can easily be broken out from CxImage and be used separately. -- Dad, how strange it is that the pig can speak.
*thoughtful pause* It must have lost its "oink".
(my 3-year old daughter Moa, while watching Babe) Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams)Johann Gerell wrote: Well, I develop for CE, where the stretch mode can't be set (it's carved in stone). That's a whole different ball game then :-) Johann Gerell wrote: That's often the normal scenario when dealing with CE's limited API set. *grin* well, no-one had mentioned CE before this, so... Johann Gerell wrote: Anyway, the resampling code can easily be broken out from CxImage and be used separately. Sure - that stuff is pretty easy to write in any case. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Johann Gerell wrote: Well, I develop for CE, where the stretch mode can't be set (it's carved in stone). That's a whole different ball game then :-) Johann Gerell wrote: That's often the normal scenario when dealing with CE's limited API set. *grin* well, no-one had mentioned CE before this, so... Johann Gerell wrote: Anyway, the resampling code can easily be broken out from CxImage and be used separately. Sure - that stuff is pretty easy to write in any case. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Thanks for all that discussion. I'll try both, one for a quick and dirty image processing and the other for situations when a more accurate processing is justified. Best, Ralf. ralf.riedel@usm.edu
-
Johann Gerell wrote: Well, I develop for CE, where the stretch mode can't be set (it's carved in stone). That's a whole different ball game then :-) Johann Gerell wrote: That's often the normal scenario when dealing with CE's limited API set. *grin* well, no-one had mentioned CE before this, so... Johann Gerell wrote: Anyway, the resampling code can easily be broken out from CxImage and be used separately. Sure - that stuff is pretty easy to write in any case. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Christian Graus wrote: *grin* well, no-one had mentioned CE before this, so... No, but you asked for a scenario when the big hammer must be used, so... :cool: -- Dad, how strange it is that the pig can speak.
*thoughtful pause* It must have lost its "oink".
(my 3-year old daughter Moa, while watching Babe) Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams)