Şeklin Parlama Efektinin Rengini Okuyun
Contents
[
Hide
]
Olası Kullanım Senaryoları
Herhangi bir şeklin ışıma efektinin rengini okumak istiyorsanız, lütfenŞekil.Glow.ColorEmlak. Bir şekle uygulanan ışıma efektinin rengiyle ilgili çeşitli özellikleri bulmanıza yardımcı olacaktır.
Şeklin Işıma Efektinin Rengini Okuyun
Lütfen aşağıdaki örnek koda ve onunkaynak excel dosyasıve referansınız için konsol çıktısı. Aşağıdaki ekran görüntüsü, Microsoft Excel’de görüntülendiğinde şeklin kaynak excel dosyası içindeki parlama efektini göstermektedir.
Java şeklin parlama efektinin rengini okumak için kod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(ReadColorGlowEffect.class) + "DrawingObjects/"; | |
//Read the source excel file | |
Workbook wb = new Workbook(dataDir + "sourceGlowEffectColor.xlsx"); | |
//Access first worksheet | |
Worksheet ws = wb.getWorksheets().get(0); | |
//Access the shape | |
Shape sh = ws.getShapes().get(0); | |
//Read the glow effect color and its various properties | |
GlowEffect ge = sh.getGlow(); | |
CellsColor clr = ge.getColor(); | |
System.out.println("Color: " + clr.getColor()); | |
System.out.println("ColorIndex: " + clr.getColorIndex()); | |
System.out.println("IsShapeColor: " + clr.isShapeColor()); | |
System.out.println("Transparency: " + clr.getTransparency()); | |
System.out.println("Type: " + clr.getType()); |
Örnek kod tarafından oluşturulan konsol çıktısı
Sağlanan ile çalıştırıldığında yukarıdaki örnek kodun konsol çıktısı aşağıdadır.kaynak excel dosyası.
Color: com.aspose.cells.Color@deff0000
ColorIndex: 16711672
IsShapeColor: true
Transparency: 0.13
Type: 2