Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set custom size for thumb of slider control Pin
Subrahmanyam2-Feb-03 23:16
Subrahmanyam2-Feb-03 23:16 
Generaltomcat server Pin
venkigdl2-Feb-03 23:13
venkigdl2-Feb-03 23:13 
GeneralRasDial issue Pin
BlackSmith2-Feb-03 23:12
BlackSmith2-Feb-03 23:12 
GeneralRasDial issue Pin
BlackSmith2-Feb-03 23:12
BlackSmith2-Feb-03 23:12 
GeneralAbout bitmaps Pin
SatyaDY2-Feb-03 23:12
SatyaDY2-Feb-03 23:12 
GeneralRe: About bitmaps Pin
Mike Nordell2-Feb-03 23:22
Mike Nordell2-Feb-03 23:22 
GeneralRe: About bitmaps Pin
SatyaDY3-Feb-03 0:19
SatyaDY3-Feb-03 0:19 
GeneralRe: About bitmaps Pin
Mike Nordell3-Feb-03 0:59
Mike Nordell3-Feb-03 0:59 
SatyaDY wrote:
With StretchBlt will I loose any information??

As I already told; yes, of course you will. As soon as you resize an image (to a smaller size) you obviously will loose information. There simply is no way you can fit 200 bananas in a box made for only 150 without either crushing them or throwing away 50. The same goes for pixels.

One more doubt I want to get the coordinates of the bmp after using StretchBlt. Can I get those details ??

Sorry, I don't understand your question. What coordinates? A bitmap contains no coordinates, it contains pixels.

As for scaling a position from the src bmp to the dest bmp:

new_x = old_pos.x / old_size.x * new_size.x;

The same goes for y. It might help if you think of it as percentage of size instead of pixel positions, and all should be clear (i.e. a pixel 75% of the bitmap width from the left of the large bitmap is, however you scale it, still 75% of the scaled bitmap width from the left).
GeneralRe: About bitmaps Pin
SatyaDY3-Feb-03 1:47
SatyaDY3-Feb-03 1:47 
GeneralRe: About bitmaps Pin
Mike Nordell3-Feb-03 1:52
Mike Nordell3-Feb-03 1:52 
GeneralRe: About bitmaps Pin
SatyaDY3-Feb-03 18:48
SatyaDY3-Feb-03 18:48 
Generalusing setvalue in excel automation Pin
Gérald Mercet2-Feb-03 22:50
Gérald Mercet2-Feb-03 22:50 
GeneralRe: using setvalue in excel automation Pin
HENDRIK R3-Feb-03 1:21
HENDRIK R3-Feb-03 1:21 
GeneralRe: using setvalue in excel automation Pin
Gérald Mercet3-Feb-03 3:46
Gérald Mercet3-Feb-03 3:46 
GeneralRe: using setvalue in excel automation Pin
Gérald Mercet4-Feb-03 23:11
Gérald Mercet4-Feb-03 23:11 
GeneralHowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
Alexinuk2-Feb-03 22:47
Alexinuk2-Feb-03 22:47 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
HENDRIK R2-Feb-03 23:17
HENDRIK R2-Feb-03 23:17 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
Alexinuk2-Feb-03 23:21
Alexinuk2-Feb-03 23:21 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
Rage2-Feb-03 23:23
professionalRage2-Feb-03 23:23 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
Alexinuk2-Feb-03 23:25
Alexinuk2-Feb-03 23:25 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
HENDRIK R3-Feb-03 0:25
HENDRIK R3-Feb-03 0:25 
GeneralRe: HowTo simulate a 'dumb' terminal in 95/98/ME/NT/2K/XP Pin
HENDRIK R2-Feb-03 23:27
HENDRIK R2-Feb-03 23:27 
Generali don't get it anymore Pin
willempipi2-Feb-03 22:43
willempipi2-Feb-03 22:43 
GeneralRe: i don't get it anymore Pin
willempipi2-Feb-03 23:03
willempipi2-Feb-03 23:03 
GeneralRe: Fast List Control Pin
Mike Nordell2-Feb-03 22:39
Mike Nordell2-Feb-03 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.