Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
SatyaDY wrote:
With your calculation ur calculation I am getting the floating values. How to get the exact values on the display.

I don't know what an "ur calculation" is (Abacus related? ;->), but for your question; either truncate to integer or round as you see fit. Again; if source bmp is 1280x1024 and dest bmp is 1024x768, and a point in the source bmp happens to be at coordinate (500,700), then

x_offs_percent = float(500)/1280;
y_offs_percent = float(700)/1024;
x_offs_in_dest_coord = x_offs_percent * 1024;
y_offs_in_dest_coord = y_offs_percent * 768;

If you don't want to use floating point, just turn the operations around to be:

new_x_offs = orig_x_offs * 1024 /1280;
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 
Generalsockets and proxy Pin
Rüpel2-Feb-03 20:34
Rüpel2-Feb-03 20:34 
GeneralRe: sockets and proxy Pin
palbano3-Feb-03 7:29
palbano3-Feb-03 7:29 

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.