Tag Info

Hot answers tagged

5

I'm assuming that you're trying to set the IColor as RGBA with the transparency in the colour... that's not how it works, when you create an IColor from RGBA only the RGB is set, the alpha is ignored... see IColor, the options are CMYK, Gray, HLS, HSV, RGB - none of these have Alpha. To get transparency on a layer you need to use the ILayerEffects Interface ...


5

As far as I know, there is no way to make text transparent in ArcMap. My suggestion for a workaround would be to export to PDF and then add the watermark using Adobe. That's what I do to add watermarks to my maps. The limitation of this would be that it requires Adobe Standard I believe. If you don't have Adobe Standard, here is a link with some other ...


4

Is it possible to use an annotation feature class for the 'DRAFT' text, manually editing the text, and setting the transparency for the layer at 50%? This allows you to see the features under the text, and it is not necessary to export the document for use in another program.


4

This is possible in QGIS using the print composer. You'll need to both: Remove the background color from the map item. This is done by unchecking the "background" option in the map item's properties. (The default is a white background) Set the page itself to a transparent style. This is done through the composition properties tab.


4

The following works in 10.2.1 and essentially turns the sketch hollow as suggested by Ian. As soon as you stop being in sketch mode it returns to your selected transparency. In the Editor toolbar go to Editor > Options and untick Use symbolized feature during editing.


3

The easiest way to loop through layers in ArcMap is to use IEnumLayer. You get a reference to that from IMap.Layers. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000482000000 Then check the type and cast each raster layer returned by the enumerator to IRasterLayer. ...


3

You can set the page background to transparent by creating a transparent symbol and setting the page background to use that symbol: transparent_fill = QgsFillSymbolV2.createSimple({ 'outline_style': 'no', 'style': 'no'}) c.setPageStyleSymbol( transparent_fill ) There's also a few other things wrong with your script: First, mapRenderer = ...


3

Arcmap has the ability to save with transparent colour for those image formats that support a transparent colour: GIF and PNG, of these two the PNG (Portable Network Graphic) is the better format as it supports 24bit colour and transparency where GIF only has 8bit palette colour and transparency. To make the export transparent select in the export dialog ...


3

The problem is not in the code, but on the image itself. The Geotiff has 3 bands, and the nodata value is set to 0 Band 1 Block=508x8 Type=Byte, ColorInterp=Red NoData Value=0Band 2 Block=508x8 Type=Byte, ColorInterp=Green NoData Value=0 Band 3 Block=508x8 Type=Byte, ColorInterp=Blue NoData Value=0 However inspecting the image in QGIS, it ...


3

You can only set the transparency if you symbolize say a point feature as a chart which in your case is pie chart. Please see the Symbology tab of your feature class. After this, you can set the transparency of your feature class from the Display tab and this will reflect on the pie charts.


3

If you have an RGB map, you can use the pansharpening option in the symbology (RGB composite) of your RGB, selecting the Hillshade instead of a panchromatic image.


2

Another option, requiring no python, is to simply edit you project file. Raster layer transparency is set with: rasterrenderer opacity="1" You can open your project file .qgs in a text editor and find and replace: rasterrenderer opacity="1" With: rasterrenderer opacity="0.73"


2

I'm guessing the areas with no imagery all have the same NoData value? right click on your layer and select "Layer Properties" go to "Transparency" top right "Additional No Data values" enter the value of the white areas


2

Perhaps dissolve the polygons together. Another option: within symbology you can select "no color" for the border of the polygons.


1

QGIS has the option to set transparency based on a number of factors no matter the file format you use. All can be set from the Transparency tab in the raster layer Properties. Just set 100% transparency for red=255, green=255 and blue=255.


1

Further to Dan's answer on enumerating layers... with the UID.Value of IRasterLayer (see example UIDs here) supplied to the get_layers function you don't need to check later that it is a raster layer you're playing with, however sometimes you need to use the UID for IDataLayer which will return feature layers and raster layers, so to check this use: if ...


1

The problem is that 'QgsVectorLayer' objects have not attribute 'renderer'. This kind of method is for raster layers. If you want to change the transparency of QgsVectorLayer objects you have to use the method: 'setLayerTransparency(int)'; located in QgsVectorLayer class. Next code works for these kind of objects: mc=iface.mapCanvas() layers=[] n = ...


1

A blog entitled Help! My ECW has speckled edges! from Hexagon Geospatial covers this topic quite well because knocking out pixels is not a reliable solution. If the ECW was created with an Opacity Band, QGIS would use this as an Alpha band. If you received the rail corridor ECW image from a third-party data supplier, I would go back to them and ask that ...


1

First of all I would place the raster as the bottom layer, then the white cells won't hide anything. If this is not an option try the layer Properties > Transparency tab. With the plus sign you can define color transparency for a specific color.


1

Thanks for your answer! The solution I found more appropriate and clean is using Canvas indeed I paste the key part of the code. - Icon variable is the key for Google Map - The call back is a function that takes the variable Marker (since the construction of Canvases can be asynchronous.) var canvas = document.createElement("canvas"); ...



Only top voted, non community-wiki answers of a minimum length are eligible