Dear coleague
I need an example to convert de 297.4 mm x 210,0 mm to pixel or viceversa in 800 x 600 screen resolution Somebody have one to
send me or tell me how can i do that
Thanks
Dante
Dear coleague
I need an example to convert de 297.4 mm x 210,0 mm to pixel or viceversa in 800 x 600 screen resolution Somebody have one to
send me or tell me how can i do that
Thanks
Dante
Just scan at 70 dpi and you will get an image of approx. 800 x 600 pixel. However, I suspect that it will be barely readable on the screen and too low in quality for printing full size.
Is this what you needed?
Rafael
hi,
CAN YOU HELP ME TO GET DPI from a generic bmp files ?
tks
Romeo
devwin2004 wrote:Dear coleague
I need an example to convert de 297.4 mm x 210,0 mm to pixel or viceversa in 800 x 600 screen resolution Somebody have one to
send me or tell me how can i do that
Thanks
Dante
devwin2004@yahoo.com.ar
#include "FiveWin.ch"
#define HORZSIZE Â Â Â Â Â 4
#define VERTSIZE Â Â Â Â Â 6
#define HORZRES Â Â Â Â Â 8
#define VERTRES Â Â Â Â Â 10
#define LOGPIXELSX Â Â Â 88
#define LOGPIXELSY Â Â Â 90
/* ****************************************************************************
Funciones para convertir PIXEL a Twip/Pulgadas/CentÃmetros y viceversa.
hDC -> oWnd:hDC or oPrn:hDC
  ************************************************************************* */
/* ******************************************************* */
FUNCTION nPixels2Twips( hDC, nPixels, lVertical )
Return (nPixels / GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) ) * 1440
/* ******************************************************* */
FUNCTION nTwips2Pixels( hDC, nTwips, lVertical )
Return (nTwips / 1440) * GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) )
/* ******************************************************* */
FUNCTION nPixels2Inches( hDC, nPixels, lVertical )
Return (nPixels / GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) )
/* ******************************************************* */
FUNCTION nInches2Pixels( hDC, nInches, lVertical )
Return (nInches * GetDeviceCaps( hDC, If(lVertical, LOGPIXELSY, LOGPIXELSX) ) )
/* ******************************************************* */
FUNCTION nPixels2Cm( hDC, nPixels, lVertical )
Return nPixels2Inches( hDC, nPixels, lVertical ) * 2.54
/* ******************************************************* */
FUNCTION nCm2Pixels( hDC, nCm, lVertical )
Return nInches2Pixels( hDC, (nCm / 2.54), lVertical )
/* ******************************************************* */
FUNCTION uCm2Pixels( HdC, nCmy, nCmx )
nCmy := nCm2Pixels( hDC, nCmy, .T. )
nCmx := nCm2Pixels( hDC, nCmx, .F. )
Return NilUn Saludo
Carlos G.
FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home
Certainly this is very strange because all I have always said that I could see a white window, with the measures expressed in cm in pixels simulating a page printer, if not with the state an object instead oprn with these functions can be done now perhaps better with mine designer report