Search found 22 matches: nquality

Return to advanced search

Re: Child OF oWnd

... {NINPHEIGHT, -20}, {NINPWIDTH, 0}, {NESCAPEMENT, 0}, {NORIENTATION, 0}, {NWEIGHT, 0}, {NCHARSET, 0}, {NOUTPRECISION, 0}, {NCLIPPRECISION, 0}, {NQUALITY, 0}, {NPITCHFAMILY, 0}, {NCOUNT, 27}, {LDESTROY, .T.}, {LNEW, .F.}}} , ... the 1st Sub-Array seems to be Control itself and have all Information ...
by Jimmy
Thu Nov 10, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 508

Re: Bitmap from a variable

Dear Natter,

CLASS TXImage METHOD Save( lAsViewed, cFile, nQuality )

what nQuality parameter value are you using ?

Please try with 100
by Antonio Linares
Fri Oct 14, 2022 7:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap from a variable
Replies: 4
Views: 367

Re: time schedule system

Dear Otto, You could supply the factor as a parameter: function resizeImage( cSrc, cDst, nValue ) local nQuality := 0 local oImage := GdiBmp():New( cSrc ) local nFactor := oImage:GetWidth() / If( Empty( nValue ), 400, nValue ) local newHeight := oImage:GetHeight( nFactor ) ...
by Antonio Linares
Fri Apr 16, 2021 10:39 am
 
Forum: mod_harbour
Topic: time schedule system
Replies: 5
Views: 979

Re: New FTDN February/Febrero 2021 (FWH 21.02)

... SAY <cSay>. Ejemplo: @ nRow, nCol SAY cSay PICTURE "@!" WIDTH 100 GET oGet ... * XImage.prg: - Método Save( lAsViewed, cFile, nQuality ), cuando lAsViewed es .T., está guardando sólo la imagen básica pero no cualquier dibujo a mano alzada realizado por el usuario sobre la imagen. ...
by Antonio Linares
Mon Apr 05, 2021 6:43 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2021 (FWH 21.02)
Replies: 2
Views: 2374

New FTDN February/Febrero 2021 (FWH 21.02)

... in clause SAY <cSay> Eg: @ nRow, nCol SAY cSay PICTURE "@!" WIDTH 100 GET oGet ... * XImage.prg: - method Save( lAsViewed, cFile, nQuality ), when lAsViewed is .t., is saving only the basic image but not any freehand drawins drawn by the user over the image. Fixed. Window.prg, ...
by Antonio Linares
Wed Mar 24, 2021 8:56 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2021 (FWH 21.02)
Replies: 2
Views: 2374

Re: Memory Leak - Richedit

... and also we need not use Clipboard at all. When you want to save, just call oImage:Save( .t., "name.png" )  Note: Last parameter nQuality is required only for jpg files. Is there any problem saving this way?
by nageswaragunupudi
Sat Feb 27, 2021 11:46 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Memory Leak - Richedit
Replies: 29
Views: 4888

A problem saving linecolors ( new image ) with xImage

... http://www.pflegeplus.com/IMAGES/draw3.jpg it seems to be something wrong in METHOD Save( lAsViewed, cFile, nQuality ) METHOD Paste() regards Uwe :?:
by ukoenig
Tue Sep 24, 2019 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem saving linecolors ( new image ) with xImage
Replies: 2
Views: 644

Re: QRCODE

Saludos y buen dia Solucionado oImage:SaveImage( cFileB, 0, nQuality ) // Our first DialogBox sample #include "FiveWin.ch" #include "ttitle.ch" # define HTTPREQUEST_PROXYSETTING_PROXY 2 // Para xHarbour #IFDEF __XHARBOUR__ #xtranslate ...
by jnavas
Tue Dec 11, 2018 8:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: QRCODE
Replies: 12
Views: 4386

Re: DEFINE FONT vs TFont()

... nHeight, lFromUser, lBold,; nEscapement, nOrientation, nWeight, lItalic, lUnderline,; lStrikeOut, nCharSet, nOutPrecision, nClipPrecision,; nQuality, oDevice, nPitchFamily ) creates a font with exactly the same parameters using Windows function CreateFont(). CreateFontIndirect() uses LOGFONT ...
by nageswaragunupudi
Tue Dec 19, 2017 7:49 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: DEFINE FONT vs TFont()
Replies: 20
Views: 4198

Re: GDIPLUSEMFTOJPG()

byte-one wrote:What range have the fourth parameter (nQuality) from this function?


Zero would give you the lowest quality image and 100 the highest.

https://msdn.microsoft.com/es-es/librar ... y(v=vs.110).aspx
by mastintin
Thu Apr 27, 2017 12:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GDIPLUSEMFTOJPG()
Replies: 2
Views: 464

GDIPLUSEMFTOJPG()

What range have the fourth parameter (nQuality) from this function?
by byte-one
Thu Apr 27, 2017 9:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GDIPLUSEMFTOJPG()
Replies: 2
Views: 464

Re: Save a bitmaphandle to file (jpg or png)

This method should return .T. or .F. and also a DEFAULT for nQuality
Code: Select all  Expand view  RUN
METHOD Save( cFile , nQuality ) CLASS GDIBmp
by byte-one
Mon Feb 22, 2016 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save a bitmaphandle to file (jpg or png)
Replies: 15
Views: 3560

Re: Save all the Screen to BMP

Romeo,

You could try:

FIConvertImageFile( cDestinationFileName, cSourceFileName, nFormat, nQuality )
by Antonio Linares
Tue Oct 13, 2015 9:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save all the Screen to BMP
Replies: 13
Views: 2004

FISAVEIMG() FILOAD() str 0 error

Hi ! 1. // comes from image.prg static function FISAVEIMG( cSrcFile, cDstFile, nDstFormat, nQuality ) local nSrcFormat, hDib, hDib2, lOk := .f. DEFAULT nQuality := 0 if LoadFreeImage() > 32 nSrcFormat = FIGETFILETYPE( cSrcFile, 0 ) hDib = FILOAD( nSrcFormat, cSrcFile, ...
by ShumingWang
Sat Apr 25, 2015 10:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FISAVEIMG() FILOAD() str 0 error
Replies: 2
Views: 552

Re: How to keep a existing alpha-channel, saving a bitmap ?

... if NO = hDib2 = FICNV24( hDib ) if YES = hDib2 = FICONVTO32( hDib ) the needed changes in class TImage : METHOD SaveImage( cFile, nFormat, nQuality ) CLASS TImage local hDib := DibFromBitmap( ::hBitmap, ::hPalette ) local cTempFile := cTempFile() local lSaved, lAlpha := ::HasAlpha() DibWrite( ...
by ukoenig
Mon Jun 23, 2014 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a alpha-channel, save and resize a bitmap
Replies: 5
Views: 2013
Next

Return to advanced search