Hi All,

i have buffer with size : 320 x 240 x 3, i want stretch buffer to : 640 x
480 x 3 or any size, anybody can help me how to do that use C language, any
algorithm stretch buffer?

Thanks very much
David,

Re: Stretch buffer use C language by Maxim

Maxim
Thu Aug 30 13:52:22 PDT 2007

Brezenham's algorithm with repeating scanlines to stretch vertically
Then transpone (vertical becomes horizontal)
Then Brezenham once more (vertical)
Then transpone back

Or look at bitmap stretching code in X11 source.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"David" <thuong101277@yahoo.com> wrote in message
news:%23rxj9xv6HHA.5184@TK2MSFTNGP03.phx.gbl...
> Hi All,
>
> i have buffer with size : 320 x 240 x 3, i want stretch buffer to : 640 x
> 480 x 3 or any size, anybody can help me how to do that use C language, any
> algorithm stretch buffer?
>
> Thanks very much
> David,
>
>


Re: Stretch buffer use C language by David

David
Thu Aug 30 22:58:52 PDT 2007

Thanks for your replace,

Where i can get this source code?

David,

"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:uNTFre06HHA.4304@TK2MSFTNGP03.phx.gbl...
> Brezenham's algorithm with repeating scanlines to stretch vertically
> Then transpone (vertical becomes horizontal)
> Then Brezenham once more (vertical)
> Then transpone back
>
> Or look at bitmap stretching code in X11 source.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "David" <thuong101277@yahoo.com> wrote in message
> news:%23rxj9xv6HHA.5184@TK2MSFTNGP03.phx.gbl...
>> Hi All,
>>
>> i have buffer with size : 320 x 240 x 3, i want stretch buffer to : 640 x
>> 480 x 3 or any size, anybody can help me how to do that use C language,
>> any
>> algorithm stretch buffer?
>>
>> Thanks very much
>> David,
>>
>>
>



Re: Stretch buffer use C language by Paul

Paul
Fri Aug 31 03:07:13 PDT 2007

pull down any X11 source with any linux distro


"David" <thuong101277@yahoo.com> wrote in message
news:eHzrAQ56HHA.536@TK2MSFTNGP06.phx.gbl...
> Thanks for your replace,
>
> Where i can get this source code?
>
> David,
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:uNTFre06HHA.4304@TK2MSFTNGP03.phx.gbl...
>> Brezenham's algorithm with repeating scanlines to stretch vertically
>> Then transpone (vertical becomes horizontal)
>> Then Brezenham once more (vertical)
>> Then transpone back
>>
>> Or look at bitmap stretching code in X11 source.
>>
>> --
>> Maxim Shatskih, Windows DDK MVP
>> StorageCraft Corporation
>> maxim@storagecraft.com
>> http://www.storagecraft.com
>>
>> "David" <thuong101277@yahoo.com> wrote in message
>> news:%23rxj9xv6HHA.5184@TK2MSFTNGP03.phx.gbl...
>>> Hi All,
>>>
>>> i have buffer with size : 320 x 240 x 3, i want stretch buffer to : 640
>>> x
>>> 480 x 3 or any size, anybody can help me how to do that use C language,
>>> any
>>> algorithm stretch buffer?
>>>
>>> Thanks very much
>>> David,
>>>
>>>
>>
>
>