Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » Can i change a bopti image
Simnon Hors ligne Membre Points: 73 Défis: 0 Message

Can i change a bopti image

Posté le 11/10/2025 20:34

modify its pixels on runtime


Lephenixnoir En ligne Administrateur Points: 25402 Défis: 174 Message

Citer : Posté le 11/10/2025 21:40 | #


On G-III? There's no API for it yet, unfortunately. The format is designed for fast rendering and is thus quite cumbersome to modify.

A couple years ago I wrote a library called libimg which can edit images. It was a bit silly to make this a separate library, and since then all the image modification for color images (on fx-CG) have been merged into gint. I have plans to do the same for libimg's mono image format but sadly haven't done that so.

So the short answer is no not really. You can use libimg if that works in your case. And you can always revert to making a pixel array yourself and rendering it with two for loops and dpixel if the images you're modifying at runtime aren't too big or too frequent to be a performance hog.
Mon graphe (27 Juin): (MQ || Rogue Life) ; serial gint ; passe gint 3 ; Azur ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 73 Défis: 0 Message

Citer : Posté le 11/10/2025 22:52 | #


damn too bad

Wouldnt it be theoretically possible to modify the image by assigning a value to the image pointer at an index, like you would to an array pointer?

That might make no sense at all im just assumming thats how pointers work based on what i learned about them so far,
Lephenixnoir En ligne Administrateur Points: 25402 Défis: 174 Message

Citer : Posté le 11/10/2025 22:55 | #


Yes, you can access the data, with one limitation: you have to use section: .data in the fxconv metadata when you convert it, otherwise it's put in a memory location that's read-only.

When accessing the data, you then have to understand the format for how the pixels are laid out in memory, and you can change that by writing through the data pointer.

There's old documentation about the format here: https://git.planet-casio.com/Lephenixnoir/gint/wiki/bopti-on-fx-9860G
Mon graphe (27 Juin): (MQ || Rogue Life) ; serial gint ; passe gint 3 ; Azur ; ...) || (shoutbox v5 ; v5)
Simnon Hors ligne Membre Points: 73 Défis: 0 Message

Citer : Posté le 12/10/2025 00:50 | #


thanks

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2025 | Il y a 64 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd