예제 #1
0
        public static Bitmap GetPreviewImage(object obj, int desiredWidth, int desiredHeight, PreviewSizeMode mode = PreviewSizeMode.FixedNone)
        {
            PreviewImageQuery query = new PreviewImageQuery(obj, desiredWidth, desiredHeight, mode);

            GetPreview(query);
            return(query.Result);
        }
예제 #2
0
        void IPreviewGenerator.Perform(IPreviewQuery query)
        {
            PreviewImageQuery imgQuery = query as PreviewImageQuery;

            if (imgQuery != null)
            {
                this.Perform((T)query.Source, imgQuery);
                return;
            }
            PreviewSoundQuery sndQuery = query as PreviewSoundQuery;

            if (sndQuery != null)
            {
                this.Perform((T)query.Source, sndQuery);
                return;
            }
        }
예제 #3
0
 public virtual void Perform(T obj, PreviewImageQuery query)
 {
 }