Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

HarmonyOS Development: Drawing Ellipse with Ellipse

Foreword this article is based on Api13 in the previous two articles, we outlined the geometric rectangle and Circle, which are implemented using Rect and Circle components respectively. In this article, we introduce another geometric…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




Foreword



this article is based on Api13



in the previous two articles, we outlined the geometric rectangle and Circle, which are implemented using Rect and Circle components respectively. In this article, we introduce another geometric component, Ellipse, to implement an elliptical figure.



Ellipse is a graphics component used to draw ellipses in ArkUI framework. It supports basic functions such as filling, stroke, transparency adjustment, etc. Its core features include flexible layout, complex vector graphics (similar to SVG effect) can be used alone or nested in the parent Shape component, and dynamic attributes are also supported. Animation effects such as color gradient and size change can be realized through state variables.



Of course, to implement Ellipse, we can also draw through Canvas. Ellipse component is not the only choice.






Simple Case



to achieve a wide 200, high 100 ellipse, the code is as follows:




Ellipse({ width: 200, height: 100 })






the effect is as follows:



Image description






attribute Details



first of all, the Eclipse component supports common attributes, such as wide width, high height, etc. Of course, it also supports common events, such as click events, touch events, etc. In addition, it also has its own attributes. The more common attributes are as follows:




























method parameters overview
fill ResourceColor set the color of the filled area
strokeWidth Length Border width, value range ≥ 0
antiAlias boolean whether to turn on the anti-aliasing effect





code Case






solid ellipse



the default is a solid ellipse, for example, implementing a solid ellipse with a wide 200, a high 100, and a pink background color.




Ellipse({ width: 200, height: 100 })
.fill(Color.Pink)






The effect is as follows:



Image description






hollow ellipse



hollow ellipses need to be noted that the background color needs to be set to transparent, that is, the fullopacity attribute is set to 0.




Ellipse({ width: 200, height: 100 })
.fillOpacity(0)
.stroke(Color.Pink)






The effect is as follows:



Image description



above, you can use strokeWidth to set the thickness of the border.






Combine the Shape component (vector effect)



some other effects can be achieved by combining the Shape component, such as viewport, to set the viewport of the Shape.




Shape() {
Ellipse({ width: 200, height: 100 })
.fillOpacity(0)
.stroke(Color.Pink)
.strokeWidth(5)
}
.viewPort({
x: 0,
y: 0,
width: 100,
height: 50
})









Precautions



Ellipse is a very simple elliptical component. There are nothing specific to note, but there are still several things to note. The first is version compatibility. For example, if you want to use it in meta-service, you must use it in API11 and above. Also, when using strokeDashArray attribute, you must ensure the parameter is a numeric array, otherwise an error may be reported.



The second possibility is to pay attention to performance. Try to avoid frequently modifying the eclipse attribute in the callback of high-frequency update, and give priority to using @ State State variable to drive changes. For those complex graphics, it is recommended to use Shape to combine multiple drawing components instead of nesting multiple layers of eclipse.



The third is that when using the border, you need to set the transparency of the fill to 0 so that the border can be displayed.





in addition to using the Ellipse component to draw an Ellipse, we can also use Canvas to draw an Ellipse, but relatively speaking, it is still not as efficient as the Ellipse component. Therefore, if the Ellipse component can meet the requirements, the Ellipse component is still the main component.

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - HarmonyOS Development: Drawing Ellipse with Ellipse
id: 80743b18-c3e7-4ba3-9880-f818f07d48d4
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-26
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-26"
        description = "YARA Signature for "
    strings:
        $str = "HarmonyOS Development: Drawing" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("HarmonyOS Development Drawing Ellipse wi")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*HarmonyOS Development Drawing Ellipse wi*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "HarmonyOS Development Drawing Ellipse wi"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich HarmonyOS Development: Drawing Ellipse w.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten HarmonyOS Development: Drawing Ellipse with Ellipse

Thematisch verwandte Begriffe: HarmonyOS, Development, Drawing, Ellipse · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag