Download

How do you load Pixel color data from image?

Hi,

does UE4 provide some tools to read pixel color data from a bitmap image in C++? Or do I need to use some native C++ for that? If so, do you know how? :smiley:

Cheers,

Chris

You can read the raw data from an UTexture, just access the FTextureSource Source member. This si only available in an editor build and not standalone. If you need such data in standalone I would create an additional struct to hold that data and populate it when you import your textures.