How To Change Filter Mode on Image By Code?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 1MochaChan1

I’ve made an image texture using a noise, the only problem that I am facing is that when I try to color it based on the height of the noise the edges are being blurry.

I would like to know if there’s any way to change the filter mode of an image using code like we do in the import tab

I want to access this property by code

:bust_in_silhouette: Reply From: 1MochaChan1

By doing some research I’ve got a solution,

I used the flags property when generating a texture from an image

imgTexture.create_from_image(noise_img,1)

by default the flag property is set to 7 which enables the filter that makes the images a little blurry when zoomed in.