1. dynamic changing bitmap dimensions

------=_NextPart_000_000E_01C06C15.B7A48760
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

How do i resize bitmap so that it will have more (or less) pixels (not =
stretching bitmap). Example: now it has 100x100 pixels, i want it to =
have 200x200 pixels. Do i have to recreate new bitmap? If yes, do i have =
to delete old bitmap with DeleteObject(), or will it delete itself =
automatically, if i assign it to same pointer.
Do i use DeleteObject() for 1 pointer just once at the end of program?
Example:
=20
atom hBitmap --hBitmap is pointer
hBitmap=3DCreateBitmap(100,100) --create first bitmap
DeleteObject(hBitmap) --DO I HAVE TO DO THIS?
hBitmap=3DCreateBitmap(200,200) --create second bitmap, assign it to the =
same pointer

------=_NextPart_000_000E_01C06C15.B7A48760
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>How do i resize bitmap so that it will =
have more=20
(or less) pixels (not stretching bitmap). Example: now it has 100x100 =
pixels, i=20
want it to have 200x200 pixels. Do i have to recreate new bitmap? If =
yes, do i=20
have to delete old bitmap with DeleteObject(), or will it delete itself=20
automatically, if i assign it to same pointer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Do i use DeleteObject() for 1 pointer =
just once at=20
the end of program?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>atom hBitmap --hBitmap is =
pointer</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>hBitmap=3DCreateBitmap(100,100) =
--create first=20
bitmap</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>DeleteObject(hBitmap) --DO I HAVE TO DO =

THIS?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>hBitmap=3DCreateBitmap(200,200) =
--create second=20

------=_NextPart_000_000E_01C06C15.B7A48760--

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu