You've already forked lazarus-ccr
LazMapViewer: Add icon for TMvBGRADrawingengine. Less hints. Preparing for release.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -21,7 +21,6 @@ object MainForm: TMainForm
|
|||||||
CachePath = '../../../../example_cache/'
|
CachePath = '../../../../example_cache/'
|
||||||
DefaultTrackColor = clBlue
|
DefaultTrackColor = clBlue
|
||||||
DefaultTrackWidth = 3
|
DefaultTrackWidth = 3
|
||||||
DownloadEngine = MapView.BuiltInDLE
|
|
||||||
DrawingEngine = MapView.BuiltInDE
|
DrawingEngine = MapView.BuiltInDE
|
||||||
Font.Color = clBlack
|
Font.Color = clBlack
|
||||||
MapProvider = 'OpenStreetMap Mapnik'
|
MapProvider = 'OpenStreetMap Mapnik'
|
||||||
|
BIN
components/lazmapviewer/images/tmvbgradrawingengine.png
Normal file
BIN
components/lazmapviewer/images/tmvbgradrawingengine.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 997 B |
BIN
components/lazmapviewer/images/tmvbgradrawingengine_150.png
Normal file
BIN
components/lazmapviewer/images/tmvbgradrawingengine_150.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
components/lazmapviewer/images/tmvbgradrawingengine_200.png
Normal file
BIN
components/lazmapviewer/images/tmvbgradrawingengine_200.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
@@ -414,7 +414,7 @@ begin
|
|||||||
img := bmp.CreateIntfImage;
|
img := bmp.CreateIntfImage;
|
||||||
try
|
try
|
||||||
fc := TColorToFPColor(bmp.Canvas.Font.Color);
|
fc := TColorToFPColor(bmp.Canvas.Font.Color);
|
||||||
intens0 := (fc.Red + fc.Green + fc.Blue);
|
intens0 := Int64(fc.Red) + fc.Green + fc.Blue;
|
||||||
for j := 0 to img.Height - 1 do
|
for j := 0 to img.Height - 1 do
|
||||||
for i := 0 to img.Width - 1 do begin
|
for i := 0 to img.Width - 1 do begin
|
||||||
c := bmp.Canvas.Pixels[i, j];
|
c := bmp.Canvas.Pixels[i, j];
|
||||||
@@ -424,7 +424,7 @@ begin
|
|||||||
else if c = FFontColor then
|
else if c = FFontColor then
|
||||||
tc.Alpha := alphaOpaque
|
tc.Alpha := alphaOpaque
|
||||||
else begin
|
else begin
|
||||||
intens := tc.Red + tc.Green + tc.Blue;
|
intens := Int64(tc.Red) + tc.Green + tc.Blue;
|
||||||
if intens0 = 0 then
|
if intens0 = 0 then
|
||||||
alpha := (3 * alphaopaque - intens) / (3 * alphaOpaque - intens0)
|
alpha := (3 * alphaopaque - intens) / (3 * alphaOpaque - intens0)
|
||||||
else
|
else
|
||||||
|
@@ -94,6 +94,7 @@ begin
|
|||||||
try
|
try
|
||||||
http.Get(Url, AStream);
|
http.Get(Url, AStream);
|
||||||
except
|
except
|
||||||
|
// Eat the exception because we don't know on which server the map is found.
|
||||||
end;
|
end;
|
||||||
AStream.Position := 0;
|
AStream.Position := 0;
|
||||||
finally
|
finally
|
||||||
|
Reference in New Issue
Block a user