Simple (??) Graphics API question 
Author Message
 Simple (??) Graphics API question

Hi! :)

I am using Microsoft Visual Basic 5.0

Here is my problem...
I need to make a StretchBlt in order to resize a picture (make it smaller)

Currently I make the following:
    I have a temporary picture box
    I make a LoadPicture(picture) to that picture box
    And then I resize the source picture to another picture box, with the
StretchBlt function.

But, if the source picture is big, I mean BIG! it will take a lot of system
resources to load it into the picturebox (before resizing it)

Here is my suggestion...
I was thinking is something like this...
    I would create a temporary object variable (?)
    The picture would be loaded into memory only! (not wasting such
resources like the picturebox)
    And then I would manage things directly with this variable, making the
StretchBlt operation.

I think this would waste less system resources...
but..

how?
Please help me! :)

Thanks in advance
Please e-mail me with your answer...
If you found or have another method, and if it is faster than mine, please
help me! :)

Thank you VERY VERY much! :)

E-mail me with your answer please

Ricardo Martins Ferreira



Sun, 07 Jan 2001 03:00:00 GMT  
 Simple (??) Graphics API question
If you just want to display the image at a smaller size you could use an
Image control instead of a picture box and set the Stretch property to True.
-Ollie

Quote:

>Hi! :)

>I am using Microsoft Visual Basic 5.0

>Here is my problem...
>I need to make a StretchBlt in order to resize a picture (make it smaller)

>Currently I make the following:
>    I have a temporary picture box
>    I make a LoadPicture(picture) to that picture box
>    And then I resize the source picture to another picture box, with the
>StretchBlt function.

>But, if the source picture is big, I mean BIG! it will take a lot of system
>resources to load it into the picturebox (before resizing it)

>Here is my suggestion...
>I was thinking is something like this...
>    I would create a temporary object variable (?)
>    The picture would be loaded into memory only! (not wasting such
>resources like the picturebox)
>    And then I would manage things directly with this variable, making the
>StretchBlt operation.

>I think this would waste less system resources...
>but..

>how?
>Please help me! :)

>Thanks in advance
>Please e-mail me with your answer...
>If you found or have another method, and if it is faster than mine, please
>help me! :)

>Thank you VERY VERY much! :)

>E-mail me with your answer please

>Ricardo Martins Ferreira




Sun, 07 Jan 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Simple (??) Graphics API question

2. Simple (??) Graphics API question

3. simple graphics question

4. Simple Graphics Question

5. Simple Question: Assigning Icon to an App : Simple Question

6. Windows graphics API question

7. dumb newbie api graphics question...

8. Newbie API Graphics Question

9. Quick, Simple question - ExitWindowsEx API..!

10. simple question:How to terminate application API???

11. A simple api question ?

12. Simple API Drawing Question!

 

 
Powered by phpBB® Forum Software