A method of obtaining information about a heterogeneous pharmaceutical mixture is disclosed. This method involves applying an image enhancement agent, such as a stain, to the mixture. An image of the mixture can then be obtained, and information about a distribution of components of the mixture in the image can also be obtained based on spatial information derived from the application of the image enhancement agent.