This project is read-only.

How do i align the image marker vertically ?

Jun 2 at 9:36 AM
How do i align the image marker vertically ?
It is necessary to align the image in the center and at the bottom with respect to the given coordinates.
        sc:=sf.Categories.Add(MarkerFileName);
        opt:= sc.DrawingOptions;
        opt.PointType:= ptSymbolPicture;
        opt.AlignPictureByBottom:=true;
        img:=CoImage.Create;
        img.Open(MarkerFileName, PNG_FILE, true, nil);
        opt.Picture:=img;
-----
    shp:=CoShape.Create;
    shp.Create(SHP_POINT);
    shp.AddPoint(pixelX, pixelY);
    index:=shapeFileMarkers.EditAddShape(shp);
    shapeFileMarkers.ShapeCategory3[index]:=sc;