Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - cliv

Páginas: [1] 2 3 4 5
1
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-coloradjustment
Citar
caReferenceBlack=The value must be in the range from 0 to 4000
Citar
caReferenceWhite=The value must be in the range from 6000 to 10,000

Código: [Seleccionar]
'----------------------------CONTRAST-------------------------------
Private Declare Function GetColorAdjustment Lib "gdi32" (ByVal hDC As Long, ByRef lpCA As ColorAdjustment) As Long
Private Declare Function SetColorAdjustment Lib "gdi32" (ByVal hDC As Long, lpCA As ColorAdjustment) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Function SetStretchBltMode Lib "gdi32" (ByVal hDC As Long, ByVal nStretchMode As Long) As Long

Private Type ColorAdjustment
    caSize As Integer
    caFlags As Integer
    caIlluminantIndex As Integer
    caRedGamma As Integer
    caGreenGamma As Integer
    caBlueGamma As Integer
    caReferenceBlack As Integer
    caReferenceWhite As Integer
    caContrast As Integer
    caBrightness As Integer
    caColorfulness As Integer
    caRedGreenTint As Integer
End Type
Private Const HALFTONE = 4
'-----------------------------------------------------------

Código: [Seleccionar]
    Dim ColorInfo As ColorAdjustment
   
    GetColorAdjustment PictureDestination.hDC, ColorInfo
    ColorInfo.caReferenceBlack = referenceBlack
    ColorInfo.caReferenceWhite = referenceWhite
    SetColorAdjustment PictureDestination.hDC, ColorInfo

   
    SetStretchBltMode PictureDestination.hDC, HALFTONE
    StretchBlt PictureDestination.hDC, 0, 0, PictureDestination.Width, PictureDestination.Height, PictureSource.hDC, 0, 0, PictureSource.Width, PictureSource.Height, vbSrcCopy
   
    PictureDestination.Refresh

2
I want to add a new parameter to this function, image contrast (from -100 to 100) after resize, something similar to:

ResizeImagenStream(ByRef InStream() As Byte, ByRef OutStream() As Byte, ByVal ThumbnailScale As Long, Optional ByVal JPG_Quality As Long = 80, Optional ByVal JPG_Contrast as Long=100)

...but i am not so good with graphics.

I need to print an image capture from openstreet maps and color are not so good.
1. Without contrast                                          2. with Contrast



Can anyone help me?
Thank you

3
Visual Basic 6 / Re:JLauncher - Codigo fuente
« en: Mayo 09, 2020, 06:13:38 am »
Can you re-upload the link? he's dead...

4
Visual Basic 6 / Re:ImageGPS (GPS coordinates images)
« en: Septiembre 22, 2015, 10:08:27 am »
Google change api version ...
so if you want to work use old api version... :)

change code in html from:
Código: [Seleccionar]
http://maps.googleapis.com/maps/api/js?key=AIzaSyBt8Flu0XobmWESP01JdfYaJM8jaibN2hc&sensor=false
in

Código: [Seleccionar]
http://maps.googleapis.com/maps/api/js?v=3.20&key=AIzaSyBt8Flu0XobmWESP01JdfYaJM8jaibN2hc&sensor=false
where v=3.20 is current frozen version.

5
Visual Basic 6 / ImageGPS (GPS coordinates images)
« en: Septiembre 22, 2015, 09:50:22 am »
I have an aplication like Leandro ImageGPS (GPS coordinates images) and work very good until now....but now stop working.
I try to use Lendro application and same problem ... screen do not display maps image only controls (display if you do zoom+ or zoom-).

Any ideas how to make working....?


6
Can you repost original code from FrankLizardo.
The link is dead...


Thank you

8
Visual Basic 6 / Re:clsXML - Parse from string ... not from file
« en: Noviembre 18, 2014, 04:37:02 am »
see with Microsoft.XMLDOM

Thank you ... work very well

9
Visual Basic 6 / Re:clsXML - Parse from string ... not from file
« en: Noviembre 11, 2014, 03:13:45 am »
I sorry but, not working well

 :(  :(  :(

10
Visual Basic 6 / clsXML - Parse from string ... not from file
« en: Noviembre 10, 2014, 10:18:09 am »
I try to modify clsXML by Leandro to parse xml from a memory string  not from file but i'm get stuck ... can someone please help?
I connect computer to arduino webserver and interogate (HTTP - GET) every 0.5s. Arduino response is an xml string like this ... and i need to decode without write to file.
Código: [Seleccionar]
<?xml version="1.0" ?>
- <inputs>
  <analog>26.00</analog>
  <analog>35.00</analog>
  <analog>12.60</analog>
  <digital>0</digital>
  <LED>off</LED>
  <LED>off</LED>
  <LED>off</LED>
  <LED>off</LED>
  <LED>on</LED>
  </inputs>

11
Visual Basic 6 / Re:Aporte Convertir imagen a Texto Editable, Captcha Sunat
« en: Septiembre 23, 2014, 03:40:25 am »
Can you repost the code ...Please!

12
Visual Basic 6 / Re:Mapa Interactivo
« en: Agosto 07, 2014, 06:19:44 am »
I think a good application can be ImageMapVB from Duncan Jones  (merrioncomputing) :

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=40141&lngWId=1&txtForceRefresh=8720144471487725

PRO:
- uses raster image for areas ...easy to design
- easy to draw polygon hotspot in HTML using free image mapper software or integrated editor
- easy to change maps on runtime (only change HTML script)
- easy to use in any vb6 program (ocx version)

AGAINST:
- color area on mouse_over not implement
- mark/un-mark area on mouse_click not implemented
- color one or many area from code not implemented

HTML script sample:
Código: [Seleccionar]
<map id="Demo1" name="MerrionComputing_ImageMap">
<area id="Yellow Square" shape="rectangle" coords="9,9,39,39">
<area id="Blue Circle" shape="circle" coords="67,64,15,15">
<area id="Green Triangle" shape="polygon" coords="10,93,35,93,23,117">
</map>

13
i change:
Código: [Seleccionar]
google.maps.event.addListener(marker[i], 'click', function(event) {
                      var point_click = marker[i].getPosition();
                      ObjParent.ClickMarkerEvent(point_click.lat(),point_click.lng());
          });

to:
Código: [Seleccionar]
google.maps.event.addListener(marker[i], 'click', function(event) {
                     var point_click = this.getPosition();
                     ObjParent.ClickMarkerEvent(point_click.lat(),point_click.lng());
        });

and now work!

Thank you Leandro ...

14
Thank you for multi - click event but not work .... i have an error




15
Thank you very much but I think Click Event should be

Código: [Seleccionar]
google.maps.event.addListener(marker[0], 'click', function(event) {
                                var point_click = marker[0].getPosition();
                                ObjParent.ClickMarkerEvent(point_click.lat(),point_click.lng());
                        });

Páginas: [1] 2 3 4 5